tests/basics: Add tests for parsing of ints with base 36.

This commit is contained in:
Damien George 2016-12-28 12:08:46 +11:00
parent 2d9440e2d1
commit 43384ad7e7
2 changed files with 2 additions and 0 deletions

View File

@ -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))

View File

@ -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: