mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-09 23:29:03 +00:00
Merge pull request #11445 from viriuwu/f80-freebsd-tests
re-enable f80 tests on freebsd
This commit is contained in:
commit
e428f85cfd
4 changed files with 2 additions and 17 deletions
|
|
@ -21,8 +21,8 @@ pub fn fabs(x: anytype) @TypeOf(x) {
|
|||
}
|
||||
|
||||
test "math.fabs" {
|
||||
// TODO add support for f80 & c_longdouble here
|
||||
inline for ([_]type{ f16, f32, f64, f128 }) |T| {
|
||||
// TODO add support for c_longdouble here
|
||||
inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| {
|
||||
// normals
|
||||
try expect(fabs(@as(T, 1.0)) == 1.0);
|
||||
try expect(fabs(@as(T, -1.0)) == 1.0);
|
||||
|
|
|
|||
|
|
@ -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)));
|
||||
|
|
|
|||
|
|
@ -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)));
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue