| author | |
| committer | |
| log | e428f85cfdebda103b94b2d8c35701af7d47ffdd |
| tree | c022dca7e38181f14c4571d586b437a49a3800d1 |
| parent | ec8a6544a379eb2a0ed49c539f3c11eb27f26f98 |
| parent | 4ad1480298d0f1b547a9bfffc28cc7a2dd6cafc5 |
| signature |
re-enable f80 tests on freebsd4 files changed, 2 insertions(+), 17 deletions(-)
lib/std/math/fabs.zig+2-2| ... | ... | @@ -21,8 +21,8 @@ pub fn fabs(x: anytype) @TypeOf(x) { |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | test "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| { | |
| 26 | 26 | // normals |
| 27 | 27 | try expect(fabs(@as(T, 1.0)) == 1.0); |
| 28 | 28 | 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 { |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | 16 | test "math.isFinite" { |
| 17 | // TODO remove when #11391 is resolved | |
| 18 | if (@import("builtin").os.tag == .freebsd) return error.SkipZigTest; | |
| 19 | ||
| 20 | 17 | inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| { |
| 21 | 18 | // normals |
| 22 | 19 | try expect(isFinite(@as(T, 1.0))); |
lib/std/math/isinf.zig-9| ... | ... | @@ -24,9 +24,6 @@ pub fn isNegativeInf(x: anytype) bool { |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | test "math.isInf" { |
| 27 | // TODO remove when #11391 is resolved | |
| 28 | if (@import("builtin").os.tag == .freebsd) return error.SkipZigTest; | |
| 29 | ||
| 30 | 27 | inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| { |
| 31 | 28 | try expect(!isInf(@as(T, 0.0))); |
| 32 | 29 | try expect(!isInf(@as(T, -0.0))); |
| ... | ... | @@ -38,9 +35,6 @@ test "math.isInf" { |
| 38 | 35 | } |
| 39 | 36 | |
| 40 | 37 | test "math.isPositiveInf" { |
| 41 | // TODO remove when #11391 is resolved | |
| 42 | if (@import("builtin").os.tag == .freebsd) return error.SkipZigTest; | |
| 43 | ||
| 44 | 38 | inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| { |
| 45 | 39 | try expect(!isPositiveInf(@as(T, 0.0))); |
| 46 | 40 | try expect(!isPositiveInf(@as(T, -0.0))); |
| ... | ... | @@ -52,9 +46,6 @@ test "math.isPositiveInf" { |
| 52 | 46 | } |
| 53 | 47 | |
| 54 | 48 | test "math.isNegativeInf" { |
| 55 | // TODO remove when #11391 is resolved | |
| 56 | if (@import("builtin").os.tag == .freebsd) return error.SkipZigTest; | |
| 57 | ||
| 58 | 49 | inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| { |
| 59 | 50 | try expect(!isNegativeInf(@as(T, 0.0))); |
| 60 | 51 | try expect(!isNegativeInf(@as(T, -0.0))); |
lib/std/math/isnormal.zig-3| ... | ... | @@ -23,9 +23,6 @@ pub fn isNormal(x: anytype) bool { |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | test "math.isNormal" { |
| 26 | // TODO remove when #11391 is resolved | |
| 27 | if (@import("builtin").os.tag == .freebsd) return error.SkipZigTest; | |
| 28 | ||
| 29 | 26 | // TODO add `c_longdouble' when math.inf(T) supports it |
| 30 | 27 | inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| { |
| 31 | 28 | const TBits = std.meta.Int(.unsigned, @bitSizeOf(T)); |