mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 21:08:36 +00:00
add additional negative big int constant test case
This commit is contained in:
parent
dffa6dcaf9
commit
89793bdfa7
@ -32,6 +32,9 @@ test "int128" {
|
||||
|
||||
buff = minInt(i128);
|
||||
try expect(buff < 0);
|
||||
|
||||
buff = -0x12341234123412341234123412341234;
|
||||
try expect(-buff == 0x12341234123412341234123412341234);
|
||||
}
|
||||
|
||||
test "truncate int128" {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user