authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-04-16 06:26:14-04:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2022-04-16 06:26:14-04:00
loge428f85cfdebda103b94b2d8c35701af7d47ffdd
treec022dca7e38181f14c4571d586b437a49a3800d1
parentec8a6544a379eb2a0ed49c539f3c11eb27f26f98
parent4ad1480298d0f1b547a9bfffc28cc7a2dd6cafc5
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

Merge pull request #11445 from viriuwu/f80-freebsd-tests

re-enable f80 tests on freebsd

4 files changed, 2 insertions(+), 17 deletions(-)

lib/std/math/fabs.zig+2-2
......@@ -21,8 +21,8 @@ pub fn fabs(x: anytype) @TypeOf(x) {
2121}
2222
2323test "math.fabs" {
24 // TODO add support for f80 & c_longdouble here
25 inline for ([_]type{ f16, f32, f64, f128 }) |T| {
24 // TODO add support for c_longdouble here
25 inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| {
2626 // normals
2727 try expect(fabs(@as(T, 1.0)) == 1.0);
2828 try expect(fabs(@as(T, -1.0)) == 1.0);
lib/std/math/isfinite.zig-3
......@@ -14,9 +14,6 @@ pub fn isFinite(x: anytype) bool {
1414}
1515
1616test "math.isFinite" {
17 // TODO remove when #11391 is resolved
18 if (@import("builtin").os.tag == .freebsd) return error.SkipZigTest;
19
2017 inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| {
2118 // normals
2219 try expect(isFinite(@as(T, 1.0)));
lib/std/math/isinf.zig-9
......@@ -24,9 +24,6 @@ pub fn isNegativeInf(x: anytype) bool {
2424}
2525
2626test "math.isInf" {
27 // TODO remove when #11391 is resolved
28 if (@import("builtin").os.tag == .freebsd) return error.SkipZigTest;
29
3027 inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| {
3128 try expect(!isInf(@as(T, 0.0)));
3229 try expect(!isInf(@as(T, -0.0)));
......@@ -38,9 +35,6 @@ test "math.isInf" {
3835}
3936
4037test "math.isPositiveInf" {
41 // TODO remove when #11391 is resolved
42 if (@import("builtin").os.tag == .freebsd) return error.SkipZigTest;
43
4438 inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| {
4539 try expect(!isPositiveInf(@as(T, 0.0)));
4640 try expect(!isPositiveInf(@as(T, -0.0)));
......@@ -52,9 +46,6 @@ test "math.isPositiveInf" {
5246}
5347
5448test "math.isNegativeInf" {
55 // TODO remove when #11391 is resolved
56 if (@import("builtin").os.tag == .freebsd) return error.SkipZigTest;
57
5849 inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| {
5950 try expect(!isNegativeInf(@as(T, 0.0)));
6051 try expect(!isNegativeInf(@as(T, -0.0)));
lib/std/math/isnormal.zig-3
......@@ -23,9 +23,6 @@ pub fn isNormal(x: anytype) bool {
2323}
2424
2525test "math.isNormal" {
26 // TODO remove when #11391 is resolved
27 if (@import("builtin").os.tag == .freebsd) return error.SkipZigTest;
28
2926 // TODO add `c_longdouble' when math.inf(T) supports it
3027 inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| {
3128 const TBits = std.meta.Int(.unsigned, @bitSizeOf(T));