mirror of
https://github.com/adulau/nato-converter.git
synced 2024-12-22 00:36:04 +00:00
Adapt tests to digits
This commit is contained in:
parent
32b3caa301
commit
ad6320fa4e
1 changed files with 3 additions and 1 deletions
4
test.py
4
test.py
|
@ -20,8 +20,10 @@ class TestFindInTable(unittest.TestCase):
|
|||
self.assertRaises(nato_converter.IllegalStringSize,
|
||||
nato_converter.find_in_table, "aa")
|
||||
|
||||
def test_find_digit(self):
|
||||
self.assertEqual("Unaone", nato_converter.find_in_table("1"))
|
||||
|
||||
def test_find_special_char(self):
|
||||
self.assertEqual("1", nato_converter.find_in_table("1"))
|
||||
self.assertEqual(u"é", nato_converter.find_in_table(u"é"))
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in a new issue