| author | |
| committer | |
| log | 4ad1480298d0f1b547a9bfffc28cc7a2dd6cafc5 |
| tree | f0e951a8ff4d0865e6b50093f6c205dbc3d46c62 |
| parent | 2ef9a0d9ae9bc4415492bc92c7391d69add8286e |
| signature |
1 files changed, 2 insertions(+), 2 deletions(-)
lib/std/math/fabs.zig+2-2| ... | ... | @@ -21,8 +21,8 @@ pub fn fabs(x: anytype) @TypeOf(x) { |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | test "math.fabs" { |
| 24 | // TODO add support for f80 & c_longdouble here | |
| 25 | inline for ([_]type{ f16, f32, f64, f128 }) |T| { | |
| 24 | // TODO add support for c_longdouble here | |
| 25 | inline for ([_]type{ f16, f32, f64, f80, f128 }) |T| { | |
| 26 | 26 | // normals |
| 27 | 27 | try expect(fabs(@as(T, 1.0)) == 1.0); |
| 28 | 28 | try expect(fabs(@as(T, -1.0)) == 1.0); |