zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 2ef9a0d9ae9bc4415492bc92c7391d69add8286e (tree)
parent 4c83b11f71564e0de80f496f471ca6dfb83a95e3
Author: vi <hi@viri.moe>
Date:   Fri, 15 Apr 2022 16:50:00 -0600

std.math: enable f80 tests on freebsd

Diffstat:
Mlib/std/math/isfinite.zig | 3---
Mlib/std/math/isinf.zig | 9---------
Mlib/std/math/isnormal.zig | 3---
3 files changed, 0 insertions(+), 15 deletions(-)

diff --git a/lib/std/math/isfinite.zig b/lib/std/math/isfinite.zig @@ -14,9 +14,6 @@ pub fn isFinite(x: anytype) bool { } test "math.isFinite" { - // TODO remove when #11391 is resolved - if (@import("builtin").os.tag == .freebsd) return error.SkipZigTest; - inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| { // normals try expect(isFinite(@as(T, 1.0))); diff --git a/lib/std/math/isinf.zig b/lib/std/math/isinf.zig @@ -24,9 +24,6 @@ pub fn isNegativeInf(x: anytype) bool { } test "math.isInf" { - // TODO remove when #11391 is resolved - if (@import("builtin").os.tag == .freebsd) return error.SkipZigTest; - inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| { try expect(!isInf(@as(T, 0.0))); try expect(!isInf(@as(T, -0.0))); @@ -38,9 +35,6 @@ test "math.isInf" { } test "math.isPositiveInf" { - // TODO remove when #11391 is resolved - if (@import("builtin").os.tag == .freebsd) return error.SkipZigTest; - inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| { try expect(!isPositiveInf(@as(T, 0.0))); try expect(!isPositiveInf(@as(T, -0.0))); @@ -52,9 +46,6 @@ test "math.isPositiveInf" { } test "math.isNegativeInf" { - // TODO remove when #11391 is resolved - if (@import("builtin").os.tag == .freebsd) return error.SkipZigTest; - inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| { try expect(!isNegativeInf(@as(T, 0.0))); try expect(!isNegativeInf(@as(T, -0.0))); diff --git a/lib/std/math/isnormal.zig b/lib/std/math/isnormal.zig @@ -23,9 +23,6 @@ pub fn isNormal(x: anytype) bool { } test "math.isNormal" { - // TODO remove when #11391 is resolved - if (@import("builtin").os.tag == .freebsd) return error.SkipZigTest; - // TODO add `c_longdouble' when math.inf(T) supports it inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| { const TBits = std.meta.Int(.unsigned, @bitSizeOf(T));