mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-17 00:41:32 +00:00
Fix parseInt routines after refactoring (#655)
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@ -79,6 +79,9 @@ assert(parseInt("0x1g") == 1); // not valid
|
||||
assert(parseInt(" \t\n1") == 1);
|
||||
assert(parseInt(" \t\n0x02") == 2);
|
||||
|
||||
assert(I32.parseInt("0x7FFFFFFF") == I32.MAX_VALUE);
|
||||
assert(I64.parseInt("0x7FFFFFFFFFFFFFFF") == I64.MAX_VALUE);
|
||||
|
||||
assert(parseFloat("0") == 0);
|
||||
assert(parseFloat("1") == 1);
|
||||
assert(parseFloat("0.1") == 0.1);
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user