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.
pull/2942/head
Paul Sokolovsky 2017-03-10 02:11:43 +01:00
rodzic 776883cb80
commit 854bb322bf
3 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -1,2 +1,2 @@
# Check whether arbitrary-precision integers (MPZ) are supported
1000000000000000000000000000000000000000000000
print(1000000000000000000000000000000000000000000000)

Wyświetl plik

@ -0,0 +1 @@
1000000000000000000000000000000000000000000000

Wyświetl plik

@ -209,7 +209,7 @@ def run_tests(pyb, tests, args):
# Check if arbitrary-precision integers are supported, and skip such tests if it's not
native = run_micropython(pyb, args, 'feature_check/int_big.py')
if native == b'CRASH':
if native != b'1000000000000000000000000000000000000000000000\n':
skip_int_big = True
# Check if set type (and set literals) is supported, and skip such tests if it's not