| 1 | const expectEqual = @import("std").testing.expectEqual; |
| 2 | |
| 3 | test "@round" { |
| 4 | try expectEqual(1, @round(1.4)); |
| 5 | try expectEqual(2, @round(1.5)); |
| 6 | try expectEqual(-1, @round(-1.4)); |
| 7 | try expectEqual(-3, @round(-2.5)); |
| 8 | } |
| 9 | |
| 10 | // test |