mirror of
https://github.com/ziglang/zig.git
synced 2026-02-20 08:14:48 +00:00
std.math.fabs: enable f80 testing
This commit is contained in:
parent
2ef9a0d9ae
commit
4ad1480298
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user