8000 tests/feature_check/int_big: Rework "big int" detection. · micropython/micropython@854bb32 · GitHub
[go: up one dir, main page]

Skip to content

Commit 854bb32

Browse files
author
Paul Sokolovsky
committed
tests/feature_check/int_big: Rework "big int" detection.
MICROPY_LONGINT_IMPL_LONGLONG doesn't have overflow detection, so just parsing a large number won't give an error, we need to print it out to check that the whole number was parsed.
1 parent 776883c commit 854bb32

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

tests/feature_check/int_big.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Check whether arbitrary-precision integers (MPZ) are supported
2-
1000000000000000000000000000000000000000000000
2+
print(1000000000000000000000000000000000000000000000)

tests/feature_check/int_big.py.exp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1000000000000000000000000000000000000000000000

tests/run-tests

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def run_tests(pyb, tests, args):
209209

210210
# Check if arbitrary-precision integers are supported, and skip such tests if it's not
211211
native = run_micropython(pyb, args, 'feature_check/int_big.py')
212-
if native == b'CRASH':
212+
if native != b'1000000000000000000000000000000000000000000000\n':
213213
skip_int_big = True
214214

215215
# Check if set type (and set literals) is supported, and skip such tests if it's not

0 commit comments

Comments
 (0)
0