diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2023-04-21 00:16:30 -0400 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2023-04-21 16:36:31 -0400 |
| commit | 6b23a7b61a22b7c79a44b758ff2cfdc30bcc8d8a (patch) | |
| tree | 0f65543b2bf01ba8b77cbe80f9d3357a6d9efb73 /test/behavior/floatop.zig | |
| parent | a519c9daced7dc182a57d8a49992463eabf3c825 (diff) | |
| download | zig-6b23a7b61a22b7c79a44b758ff2cfdc30bcc8d8a.tar.gz zig-6b23a7b61a22b7c79a44b758ff2cfdc30bcc8d8a.zip | |
behavior: enable a bunch of disabled tests
Diffstat (limited to 'test/behavior/floatop.zig')
| -rw-r--r-- | test/behavior/floatop.zig | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/test/behavior/floatop.zig b/test/behavior/floatop.zig index c4f1168efc..3fc2249ccc 100644 --- a/test/behavior/floatop.zig +++ b/test/behavior/floatop.zig @@ -535,18 +535,6 @@ test "another, possibly redundant, @fabs test" { if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO - if (builtin.os.tag == .windows and builtin.cpu.arch == .aarch64 and - builtin.zig_backend == .stage2_c) - { - // https://github.com/ziglang/zig/issues/13876 - return error.SkipZigTest; - } - - if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c) { - // TODO: test is failing - return error.SkipZigTest; - } - try testFabsLegacy(f128, 12.0); comptime try testFabsLegacy(f128, 12.0); try testFabsLegacy(f64, 12.0); @@ -584,18 +572,6 @@ test "a third @fabs test, surely there should not be three fabs tests" { if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO - if (builtin.os.tag == .windows and builtin.cpu.arch == .aarch64 and - builtin.zig_backend == .stage2_c) - { - // https://github.com/ziglang/zig/issues/13876 - return error.SkipZigTest; - } - - if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c) { - // TODO: test is failing - return error.SkipZigTest; - } - inline for ([_]type{ f16, f32, f64, f80, f128, c_longdouble }) |T| { // normals try expect(@fabs(@as(T, 1.0)) == 1.0); @@ -698,11 +674,6 @@ test "@floor f128" { if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO - if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c) { - // TODO: test is failing - return error.SkipZigTest; - } - try testFloorLegacy(f128, 12.0); comptime try testFloorLegacy(f128, 12.0); } @@ -793,11 +764,6 @@ test "@ceil f128" { if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO - if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c and builtin.cpu.arch == .x86_64) { - // TODO: test is failing - return error.SkipZigTest; - } - try testCeilLegacy(f128, 12.0); comptime try testCeilLegacy(f128, 12.0); } @@ -894,11 +860,6 @@ test "@trunc f128" { if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO - if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c) { - // TODO: test is failing - return error.SkipZigTest; - } - try testTruncLegacy(f128, 12.0); comptime try testTruncLegacy(f128, 12.0); } @@ -1010,18 +971,6 @@ test "negation f128" { if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO - if (builtin.os.tag == .windows and builtin.cpu.arch == .aarch64 and - builtin.zig_backend == .stage2_c) - { - // https://github.com/ziglang/zig/issues/13876 - return error.SkipZigTest; - } - - if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c) { - // TODO: test is failing - return error.SkipZigTest; - } - const S = struct { fn doTheTest() !void { var a: f128 = 1; @@ -1065,11 +1014,6 @@ test "comptime fixed-width float zero divided by zero produces NaN" { if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO - if (builtin.os.tag == .macos and builtin.zig_backend == .stage2_c and builtin.cpu.arch == .x86_64) { - // TODO: test is failing - return error.SkipZigTest; - } - inline for (.{ f16, f32, f64, f80, f128 }) |F| { try expect(math.isNan(@as(F, 0) / @as(F, 0))); } |
