Skip to content

Commit 43384ad

Browse files
committed
tests/basics: Add tests for parsing of ints with base 36.
1 parent 2d9440e commit 43384ad

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

tests/basics/int1.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
print(int('11', 8))
3737
print(int('11', 2))
3838
print(int('11', 36))
39+
print(int('xyz', 36))
3940
print(int('0o123', 0))
4041
print(int('8388607'))
4142
print(int('0x123', 16))

tests/basics/int_mpz.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
print(int("-123456789012345678901234567890"))
6969
print(int("123456789012345678901234567890abcdef", 16))
7070
print(int("123456789012345678901234567890ABCDEF", 16))
71+
print(int("1234567890abcdefghijklmnopqrstuvwxyz", 36))
7172

7273
# invalid characters in string
7374
try:

0 commit comments

Comments
 (0)