Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test unicode in base 0 as well
  • Loading branch information
hauntsaninja committed Apr 30, 2023
commit 51f93b704fe8097c1d6d745699dd36ce7ff2452b
2 changes: 2 additions & 0 deletions Lib/test/test_int.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ def test_invalid_signs(self):
def test_unicode(self):
self.assertEqual(int("१२३४५६७८९०1234567890"), 12345678901234567890)
self.assertEqual(int('١٢٣٤٥٦٧٨٩٠'), 1234567890)
self.assertEqual(int("१२३४५६७८९०1234567890", 0), 12345678901234567890)
self.assertEqual(int('١٢٣٤٥٦٧٨٩٠', 0), 1234567890)

def test_underscores(self):
for lit in VALID_UNDERSCORE_LITERALS:
Expand Down