std.math.fabs: enable f80 testing

This commit is contained in:
vi 2022-04-15 16:51:22 -06:00
parent 2ef9a0d9ae
commit 4ad1480298
No known key found for this signature in database
GPG Key ID: 70D2D3DF8F7FB7C3

View File

@ -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);