authorgravatar for hi@viri.moevi <hi@viri.moe> 2022-04-15 16:50:00-06:00
committergravatar for hi@viri.moevi <hi@viri.moe> 2022-04-15 16:50:00-06:00
log2ef9a0d9ae9bc4415492bc92c7391d69add8286e
treebf410410e62821b7336b6fac6109ded52cfc5916
parent4c83b11f71564e0de80f496f471ca6dfb83a95e3
signaturelock-open Commit is signed but in an unrecognized format.

std.math: enable f80 tests on freebsd


3 files changed, 0 insertions(+), 15 deletions(-)

lib/std/math/isfinite.zig-3
...@@ -14,9 +14,6 @@ pub fn isFinite(x: anytype) bool {...@@ -14,9 +14,6 @@ pub fn isFinite(x: anytype) bool {
14}14}
1515
16test "math.isFinite" {16test "math.isFinite" {
17 // TODO remove when #11391 is resolved
18 if (@import("builtin").os.tag == .freebsd) return error.SkipZigTest;
19
20 inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| {17 inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| {
21 // normals18 // normals
22 try expect(isFinite(@as(T, 1.0)));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,9 +24,6 @@ pub fn isNegativeInf(x: anytype) bool {
24}24}
2525
26test "math.isInf" {26test "math.isInf" {
27 // TODO remove when #11391 is resolved
28 if (@import("builtin").os.tag == .freebsd) return error.SkipZigTest;
29
30 inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| {27 inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| {
31 try expect(!isInf(@as(T, 0.0)));28 try expect(!isInf(@as(T, 0.0)));
32 try expect(!isInf(@as(T, -0.0)));29 try expect(!isInf(@as(T, -0.0)));
...@@ -38,9 +35,6 @@ test "math.isInf" {...@@ -38,9 +35,6 @@ test "math.isInf" {
38}35}
3936
40test "math.isPositiveInf" {37test "math.isPositiveInf" {
41 // TODO remove when #11391 is resolved
42 if (@import("builtin").os.tag == .freebsd) return error.SkipZigTest;
43
44 inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| {38 inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| {
45 try expect(!isPositiveInf(@as(T, 0.0)));39 try expect(!isPositiveInf(@as(T, 0.0)));
46 try expect(!isPositiveInf(@as(T, -0.0)));40 try expect(!isPositiveInf(@as(T, -0.0)));
...@@ -52,9 +46,6 @@ test "math.isPositiveInf" {...@@ -52,9 +46,6 @@ test "math.isPositiveInf" {
52}46}
5347
54test "math.isNegativeInf" {48test "math.isNegativeInf" {
55 // TODO remove when #11391 is resolved
56 if (@import("builtin").os.tag == .freebsd) return error.SkipZigTest;
57
58 inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| {49 inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| {
59 try expect(!isNegativeInf(@as(T, 0.0)));50 try expect(!isNegativeInf(@as(T, 0.0)));
60 try expect(!isNegativeInf(@as(T, -0.0)));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,9 +23,6 @@ pub fn isNormal(x: anytype) bool {
23}23}
2424
25test "math.isNormal" {25test "math.isNormal" {
26 // TODO remove when #11391 is resolved
27 if (@import("builtin").os.tag == .freebsd) return error.SkipZigTest;
28
29 // TODO add `c_longdouble' when math.inf(T) supports it26 // TODO add `c_longdouble' when math.inf(T) supports it
30 inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| {27 inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| {
31 const TBits = std.meta.Int(.unsigned, @bitSizeOf(T));28 const TBits = std.meta.Int(.unsigned, @bitSizeOf(T));