commit 89793bdfa78badd6e29252e5c10a21233ea9b822 (tree) parent dffa6dcaf93621ab8bbfdb8effad8bde6d73c20a Author: drew <reserveblue@protonmail.com> Date: Sun, 14 Nov 2021 19:28:55 -0800 add additional negative big int constant test case Diffstat:
| M | test/behavior/int128.zig | | | 3 | +++ |
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/test/behavior/int128.zig b/test/behavior/int128.zig @@ -32,6 +32,9 @@ test "int128" { buff = minInt(i128); try expect(buff < 0); + + buff = -0x12341234123412341234123412341234; + try expect(-buff == 0x12341234123412341234123412341234); } test "truncate int128" {