fix broken io test on 32 bit
This commit is contained in:
parent
025428d0ae
commit
c5955f7e97
|
@ -939,6 +939,9 @@ proc main() =
|
||||||
|
|
||||||
let z = "115792089237316195423570985008687907853269984665640564039457584007913129639935".u256
|
let z = "115792089237316195423570985008687907853269984665640564039457584007913129639935".u256
|
||||||
let kk = z.truncate(int)
|
let kk = z.truncate(int)
|
||||||
|
when sizeof(int) == 4:
|
||||||
|
check kk == 2147483647
|
||||||
|
else:
|
||||||
check kk == 9223372036854775807
|
check kk == 9223372036854775807
|
||||||
|
|
||||||
test "Parsing an unexpected 0x prefix for a decimal string is a CatchableError and not a defect":
|
test "Parsing an unexpected 0x prefix for a decimal string is a CatchableError and not a defect":
|
||||||
|
|
Loading…
Reference in New Issue