tests/basics: Add tests for parsing of ints with base 36.
This commit is contained in:
parent
2d9440e2d1
commit
43384ad7e7
@ -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))
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user