예제 #1
0
 def test_braille_mapping(self):
     expected = [
         tabraille.table["ந"],
         tabraille.table["ஆ"],
         tabraille.table["ன"],
         tabraille.table["்"],
     ]
     self.assertListEqual(tabraille.map_to_braille("நான்"), expected)
예제 #2
0
 def test_braille_mapping2(self):
     word = 'கப்பல்'
     letters = ['க', 'ப', '்', 'ப', 'ல', '்']
     expected = [tabraille.table[l] for l in letters]
     self.assertEqual(tabraille.map_to_braille(word), expected)
예제 #3
0
 def test_braille_mapping(self):
     expected = [
         tabraille.table['ந'], tabraille.table['ஆ'], tabraille.table['ன'],
         tabraille.table['்']
     ]
     self.assertListEqual(tabraille.map_to_braille('நான்'), expected)
예제 #4
0
 def test_braille_mapping2(self):
     word = "கப்பல்"
     letters = ["க", "ப", "்", "ப", "ல", "்"]
     expected = [tabraille.table[l] for l in letters]
     self.assertEqual(tabraille.map_to_braille(word), expected)