diff options
Diffstat (limited to 'tests/basics')
-rw-r--r-- | tests/basics/int1.py | 3 | ||||
-rw-r--r-- | tests/basics/int_mpz.py | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/basics/int1.py b/tests/basics/int1.py index 89d4fd9d4b..fd9902f935 100644 --- a/tests/basics/int1.py +++ b/tests/basics/int1.py @@ -78,3 +78,6 @@ test('0b2', 2) test('0o8', 8) test('0xg', 16) test('1 1', 16) + +# check that we don't parse this as a floating point number +print(0x1e+1) diff --git a/tests/basics/int_mpz.py b/tests/basics/int_mpz.py index 0500d794cf..ee172edffe 100644 --- a/tests/basics/int_mpz.py +++ b/tests/basics/int_mpz.py @@ -55,3 +55,7 @@ for i in range(8): print(-10000000000000000000000002 >> i) print(-10000000000000000000000003 >> i) print(-10000000000000000000000004 >> i) + +# test constant integer with more than 255 chars +x = 0x84ce72aa8699df436059f052ac51b6398d2511e49631bcb7e71f89c499b9ee425dfbc13a5f6d408471b054f2655617cbbaf7937b7c80cd8865cf02c8487d30d2b0fbd8b2c4e102e16d828374bbc47b93852f212d5043c3ea720f086178ff798cc4f63f787b9c2e419efa033e7644ea7936f54462dc21a6c4580725f7f0e7d1aaaaaaa +print(x) |