From 43384ad7e72d45e2e59b7f66ff20def1607b194a Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 28 Dec 2016 12:08:46 +1100 Subject: [PATCH] tests/basics: Add tests for parsing of ints with base 36. --- tests/basics/int1.py | 1 + tests/basics/int_mpz.py | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/basics/int1.py b/tests/basics/int1.py index aea72b7dd1..2d92105c73 100644 --- a/tests/basics/int1.py +++ b/tests/basics/int1.py @@ -36,6 +36,7 @@ print(int('11', 16)) print(int('11', 8)) print(int('11', 2)) print(int('11', 36)) +print(int('xyz', 36)) print(int('0o123', 0)) print(int('8388607')) print(int('0x123', 16)) diff --git a/tests/basics/int_mpz.py b/tests/basics/int_mpz.py index 814e1b4aad..425bc21b67 100644 --- a/tests/basics/int_mpz.py +++ b/tests/basics/int_mpz.py @@ -68,6 +68,7 @@ print(int("123456789012345678901234567890")) print(int("-123456789012345678901234567890")) print(int("123456789012345678901234567890abcdef", 16)) print(int("123456789012345678901234567890ABCDEF", 16)) +print(int("1234567890abcdefghijklmnopqrstuvwxyz", 36)) # invalid characters in string try: