| author | |
| committer | |
| log | 89793bdfa78badd6e29252e5c10a21233ea9b822 |
| tree | 5c6da99337dfd6c2f6d78a513f6e231affd18d2f |
| parent | dffa6dcaf93621ab8bbfdb8effad8bde6d73c20a |
1 files changed, 3 insertions(+), 0 deletions(-)
test/behavior/int128.zig+3| ... | @@ -32,6 +32,9 @@ test "int128" { | ... | @@ -32,6 +32,9 @@ test "int128" { |
| 32 | 32 | ||
| 33 | buff = minInt(i128); | 33 | buff = minInt(i128); |
| 34 | try expect(buff < 0); | 34 | try expect(buff < 0); |
| 35 | |||
| 36 | buff = -0x12341234123412341234123412341234; | ||
| 37 | try expect(-buff == 0x12341234123412341234123412341234); | ||
| 35 | } | 38 | } |
| 36 | 39 | ||
| 37 | test "truncate int128" { | 40 | test "truncate int128" { |