diff options
author | Damien George <damien.p.george@gmail.com> | 2015-04-22 16:52:03 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-04-22 16:52:03 +0100 |
commit | 1f9e2188a630d4258e964df01a20dbb05d88b5a5 (patch) | |
tree | a589ef3bc2adf9903ffbd5f663bfa00ad6cefd8f /tests/basics/int_mpz.py | |
parent | 956d76578634a86ea50246de45add748b96cb4ec (diff) |
tests: Add tests for attrtuple, and for more corner cases.
Diffstat (limited to 'tests/basics/int_mpz.py')
-rw-r--r-- | tests/basics/int_mpz.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/basics/int_mpz.py b/tests/basics/int_mpz.py index 6e4d4c18d..6d99accf2 100644 --- a/tests/basics/int_mpz.py +++ b/tests/basics/int_mpz.py @@ -65,3 +65,15 @@ print(int("123456789012345678901234567890ABCDEF", 16)) # test constant integer with more than 255 chars x = 0x84ce72aa8699df436059f052ac51b6398d2511e49631bcb7e71f89c499b9ee425dfbc13a5f6d408471b054f2655617cbbaf7937b7c80cd8865cf02c8487d30d2b0fbd8b2c4e102e16d828374bbc47b93852f212d5043c3ea720f086178ff798cc4f63f787b9c2e419efa033e7644ea7936f54462dc21a6c4580725f7f0e7d1aaaaaaa print(x) + +# test parsing ints just on threshold of small to big +# for 32 bit archs +x = 1073741823 # small +x = -1073741823 # small +x = 1073741824 # big +x = -1073741824 # big +# for 64 bit archs +x = 4611686018427387903 # small +x = -4611686018427387903 # small +x = 4611686018427387904 # big +x = -4611686018427387904 # big |