From 6b23a7b61a22b7c79a44b758ff2cfdc30bcc8d8a Mon Sep 17 00:00:00 2001 From: Jacob Young Date: Fri, 21 Apr 2023 00:16:30 -0400 Subject: behavior: enable a bunch of disabled tests --- test/behavior/floatop.zig | 56 ----------------------------------------------- 1 file changed, 56 deletions(-) (limited to 'test/behavior/floatop.zig') 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))); } -- cgit v1.2.3