| ... | @@ -53,6 +53,11 @@ test "int128" { | ... | @@ -53,6 +53,11 @@ test "int128" { |
| 53 | | 53 | |
| 54 | buff = -0x12341234123412341234123412341234; | 54 | buff = -0x12341234123412341234123412341234; |
| 55 | try expect(-buff == 0x12341234123412341234123412341234); | 55 | try expect(-buff == 0x12341234123412341234123412341234); |
| | 56 | |
| | 57 | const a: i128 = -170141183460469231731687303715884105728; |
| | 58 | const b: i128 = -0x8000_0000_0000_0000_0000_0000_0000_0000; |
| | 59 | try expect(@divFloor(b, 1_000_000) == -170141183460469231731687303715885); |
| | 60 | try expect(a == b); |
| 56 | } | 61 | } |
| 57 | | 62 | |
| 58 | test "truncate int128" { | 63 | test "truncate int128" { |