mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 22:04:21 +00:00
std: disable big.rational setFloat targeting wasm32
until we fix the underlying issue resulting in `error.TargetTooSmall` error.
This commit is contained in:
parent
ce65ca4345
commit
a587dd08f8
1 changed files with 5 additions and 0 deletions
|
|
@ -4,6 +4,8 @@ const math = std.math;
|
||||||
const mem = std.mem;
|
const mem = std.mem;
|
||||||
const testing = std.testing;
|
const testing = std.testing;
|
||||||
const Allocator = mem.Allocator;
|
const Allocator = mem.Allocator;
|
||||||
|
const builtin = @import("builtin");
|
||||||
|
const native_arch = builtin.target.cpu.arch;
|
||||||
|
|
||||||
const Limb = std.math.big.Limb;
|
const Limb = std.math.big.Limb;
|
||||||
const DoubleLimb = std.math.big.DoubleLimb;
|
const DoubleLimb = std.math.big.DoubleLimb;
|
||||||
|
|
@ -537,6 +539,9 @@ test "big.rational set" {
|
||||||
}
|
}
|
||||||
|
|
||||||
test "big.rational setFloat" {
|
test "big.rational setFloat" {
|
||||||
|
// TODO https://github.com/ziglang/zig/issues/10026
|
||||||
|
if (native_arch == .wasm32) return error.SkipZigTest;
|
||||||
|
|
||||||
var a = try Rational.init(testing.allocator);
|
var a = try Rational.init(testing.allocator);
|
||||||
defer a.deinit();
|
defer a.deinit();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue