diff options
Diffstat (limited to 'std/math')
| -rw-r--r-- | std/math/big/rational.zig | 8 | ||||
| -rw-r--r-- | std/math/complex/atan.zig | 5 | ||||
| -rw-r--r-- | std/math/complex/cosh.zig | 5 | ||||
| -rw-r--r-- | std/math/complex/exp.zig | 5 | ||||
| -rw-r--r-- | std/math/complex/sinh.zig | 5 | ||||
| -rw-r--r-- | std/math/complex/tanh.zig | 5 | ||||
| -rw-r--r-- | std/math/cos.zig | 4 | ||||
| -rw-r--r-- | std/math/pow.zig | 12 | ||||
| -rw-r--r-- | std/math/sin.zig | 20 | ||||
| -rw-r--r-- | std/math/tan.zig | 4 |
10 files changed, 73 insertions, 0 deletions
diff --git a/std/math/big/rational.zig b/std/math/big/rational.zig index 27a3b7300f..6a51931e3c 100644 --- a/std/math/big/rational.zig +++ b/std/math/big/rational.zig @@ -742,6 +742,10 @@ test "big.rational setFloatString" { } test "big.rational toFloat" { + if (builtin.os == .linux and builtin.arch == .arm and builtin.abi == .musleabihf) { + // TODO https://github.com/ziglang/zig/issues/3289 + return error.SkipZigTest; + } var a = try Rational.init(al); // = 3.14159297943115234375 @@ -754,6 +758,10 @@ test "big.rational toFloat" { } test "big.rational set/to Float round-trip" { + if (builtin.os == .linux and builtin.arch == .arm and builtin.abi == .musleabihf) { + // TODO https://github.com/ziglang/zig/issues/3289 + return error.SkipZigTest; + } var a = try Rational.init(al); var prng = std.rand.DefaultPrng.init(0x5EED); var i: usize = 0; diff --git a/std/math/complex/atan.zig b/std/math/complex/atan.zig index 89bc8dfaf0..3cd19961c8 100644 --- a/std/math/complex/atan.zig +++ b/std/math/complex/atan.zig @@ -5,6 +5,7 @@ // https://git.musl-libc.org/cgit/musl/tree/src/complex/catan.c const std = @import("../../std.zig"); +const builtin = @import("builtin"); const testing = std.testing; const math = std.math; const cmath = math.complex; @@ -129,6 +130,10 @@ test "complex.catan32" { } test "complex.catan64" { + if (builtin.os == .linux and builtin.arch == .arm and builtin.abi == .musleabihf) { + // TODO https://github.com/ziglang/zig/issues/3289 + return error.SkipZigTest; + } const a = Complex(f64).new(5, 3); const c = atan(a); diff --git a/std/math/complex/cosh.zig b/std/math/complex/cosh.zig index be7bfde963..89afcac42e 100644 --- a/std/math/complex/cosh.zig +++ b/std/math/complex/cosh.zig @@ -4,6 +4,7 @@ // https://git.musl-libc.org/cgit/musl/tree/src/complex/ccoshf.c // https://git.musl-libc.org/cgit/musl/tree/src/complex/ccosh.c +const builtin = @import("builtin"); const std = @import("../../std.zig"); const testing = std.testing; const math = std.math; @@ -164,6 +165,10 @@ test "complex.ccosh32" { } test "complex.ccosh64" { + if (builtin.os == .linux and builtin.arch == .arm and builtin.abi == .musleabihf) { + // TODO https://github.com/ziglang/zig/issues/3289 + return error.SkipZigTest; + } const a = Complex(f64).new(5, 3); const c = cosh(a); diff --git a/std/math/complex/exp.zig b/std/math/complex/exp.zig index 9b686bebc3..5cd1cb4ed6 100644 --- a/std/math/complex/exp.zig +++ b/std/math/complex/exp.zig @@ -4,6 +4,7 @@ // https://git.musl-libc.org/cgit/musl/tree/src/complex/cexpf.c // https://git.musl-libc.org/cgit/musl/tree/src/complex/cexp.c +const builtin = @import("builtin"); const std = @import("../../std.zig"); const testing = std.testing; const math = std.math; @@ -130,6 +131,10 @@ test "complex.cexp32" { } test "complex.cexp64" { + if (builtin.os == .linux and builtin.arch == .arm and builtin.abi == .musleabihf) { + // TODO https://github.com/ziglang/zig/issues/3289 + return error.SkipZigTest; + } const a = Complex(f64).new(5, 3); const c = exp(a); diff --git a/std/math/complex/sinh.zig b/std/math/complex/sinh.zig index 6286d8447f..0b1294bb6a 100644 --- a/std/math/complex/sinh.zig +++ b/std/math/complex/sinh.zig @@ -4,6 +4,7 @@ // https://git.musl-libc.org/cgit/musl/tree/src/complex/csinhf.c // https://git.musl-libc.org/cgit/musl/tree/src/complex/csinh.c +const builtin = @import("builtin"); const std = @import("../../std.zig"); const testing = std.testing; const math = std.math; @@ -163,6 +164,10 @@ test "complex.csinh32" { } test "complex.csinh64" { + if (builtin.os == .linux and builtin.arch == .arm and builtin.abi == .musleabihf) { + // TODO https://github.com/ziglang/zig/issues/3289 + return error.SkipZigTest; + } const a = Complex(f64).new(5, 3); const c = sinh(a); diff --git a/std/math/complex/tanh.zig b/std/math/complex/tanh.zig index 5c14ec66f2..6895e8a769 100644 --- a/std/math/complex/tanh.zig +++ b/std/math/complex/tanh.zig @@ -4,6 +4,7 @@ // https://git.musl-libc.org/cgit/musl/tree/src/complex/ctanhf.c // https://git.musl-libc.org/cgit/musl/tree/src/complex/ctanh.c +const builtin = @import("builtin"); const std = @import("../../std.zig"); const testing = std.testing; const math = std.math; @@ -112,6 +113,10 @@ test "complex.ctanh32" { } test "complex.ctanh64" { + if (builtin.os == .linux and builtin.arch == .arm and builtin.abi == .musleabihf) { + // TODO https://github.com/ziglang/zig/issues/3289 + return error.SkipZigTest; + } const a = Complex(f64).new(5, 3); const c = tanh(a); diff --git a/std/math/cos.zig b/std/math/cos.zig index dc4aff59d6..5261a25f80 100644 --- a/std/math/cos.zig +++ b/std/math/cos.zig @@ -100,6 +100,10 @@ test "math.cos32" { } test "math.cos64" { + if (builtin.os == .linux and builtin.arch == .arm and builtin.abi == .musleabihf) { + // TODO https://github.com/ziglang/zig/issues/3289 + return error.SkipZigTest; + } const epsilon = 0.000001; expect(math.approxEq(f64, cos_(f64, 0.0), 1.0, epsilon)); diff --git a/std/math/pow.zig b/std/math/pow.zig index 18c9f80634..c3a7792137 100644 --- a/std/math/pow.zig +++ b/std/math/pow.zig @@ -184,6 +184,10 @@ fn isOddInteger(x: f64) bool { } test "math.pow" { + if (builtin.os == .linux and builtin.arch == .arm and builtin.abi == .musleabihf) { + // TODO https://github.com/ziglang/zig/issues/3289 + return error.SkipZigTest; + } const epsilon = 0.000001; expect(math.approxEq(f32, pow(f32, 0.0, 3.3), 0.0, epsilon)); @@ -202,6 +206,10 @@ test "math.pow" { } test "math.pow.special" { + if (builtin.os == .linux and builtin.arch == .arm and builtin.abi == .musleabihf) { + // TODO https://github.com/ziglang/zig/issues/3289 + return error.SkipZigTest; + } const epsilon = 0.000001; expect(pow(f32, 4, 0.0) == 1.0); @@ -244,6 +252,10 @@ test "math.pow.special" { } test "math.pow.overflow" { + if (builtin.os == .linux and builtin.arch == .arm and builtin.abi == .musleabihf) { + // TODO https://github.com/ziglang/zig/issues/3289 + return error.SkipZigTest; + } expect(math.isPositiveInf(pow(f64, 2, 1 << 32))); expect(pow(f64, 2, -(1 << 32)) == 0); expect(math.isNegativeInf(pow(f64, -2, (1 << 32) + 1))); diff --git a/std/math/sin.zig b/std/math/sin.zig index f21db4054e..ee07b4f85e 100644 --- a/std/math/sin.zig +++ b/std/math/sin.zig @@ -84,12 +84,20 @@ fn sin_(comptime T: type, x_: T) T { } test "math.sin" { + if (builtin.os == .linux and builtin.arch == .arm and builtin.abi == .musleabihf) { + // TODO https://github.com/ziglang/zig/issues/3289 + return error.SkipZigTest; + } expect(sin(f32(0.0)) == sin_(f32, 0.0)); expect(sin(f64(0.0)) == sin_(f64, 0.0)); expect(comptime (math.sin(f64(2))) == math.sin(f64(2))); } test "math.sin32" { + if (builtin.os == .linux and builtin.arch == .arm and builtin.abi == .musleabihf) { + // TODO https://github.com/ziglang/zig/issues/3289 + return error.SkipZigTest; + } const epsilon = 0.000001; expect(math.approxEq(f32, sin_(f32, 0.0), 0.0, epsilon)); @@ -102,6 +110,10 @@ test "math.sin32" { } test "math.sin64" { + if (builtin.os == .linux and builtin.arch == .arm and builtin.abi == .musleabihf) { + // TODO https://github.com/ziglang/zig/issues/3289 + return error.SkipZigTest; + } const epsilon = 0.000001; expect(math.approxEq(f64, sin_(f64, 0.0), 0.0, epsilon)); @@ -114,6 +126,10 @@ test "math.sin64" { } test "math.sin32.special" { + if (builtin.os == .linux and builtin.arch == .arm and builtin.abi == .musleabihf) { + // TODO https://github.com/ziglang/zig/issues/3289 + return error.SkipZigTest; + } expect(sin_(f32, 0.0) == 0.0); expect(sin_(f32, -0.0) == -0.0); expect(math.isNan(sin_(f32, math.inf(f32)))); @@ -122,6 +138,10 @@ test "math.sin32.special" { } test "math.sin64.special" { + if (builtin.os == .linux and builtin.arch == .arm and builtin.abi == .musleabihf) { + // TODO https://github.com/ziglang/zig/issues/3289 + return error.SkipZigTest; + } expect(sin_(f64, 0.0) == 0.0); expect(sin_(f64, -0.0) == -0.0); expect(math.isNan(sin_(f64, math.inf(f64)))); diff --git a/std/math/tan.zig b/std/math/tan.zig index e8259ee7ad..049c85df12 100644 --- a/std/math/tan.zig +++ b/std/math/tan.zig @@ -91,6 +91,10 @@ test "math.tan32" { } test "math.tan64" { + if (builtin.os == .linux and builtin.arch == .arm and builtin.abi == .musleabihf) { + // TODO https://github.com/ziglang/zig/issues/3289 + return error.SkipZigTest; + } const epsilon = 0.000001; expect(math.approxEq(f64, tan_(f64, 0.0), 0.0, epsilon)); |
