aboutsummaryrefslogtreecommitdiff
path: root/std/math/sin.zig
diff options
context:
space:
mode:
Diffstat (limited to 'std/math/sin.zig')
-rw-r--r--std/math/sin.zig20
1 files changed, 20 insertions, 0 deletions
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))));