示例#1
0
 def test_tamil_detected(self):
     from converters import convert_any_indic_to_braille
     input_text = "தமிழ்"
     (text, warnings) = convert_any_indic_to_braille(input_text)
     self.assertEqual(warnings, "")
     self.assertNotEqual(text, input_text)
示例#2
0
 def test_devanagari_detected(self):
     from converters import convert_any_indic_to_braille
     input_text = "देवनागरी"
     (text, warnings) = convert_any_indic_to_braille(input_text)
     self.assertEqual(warnings, "")
     self.assertNotEqual(text, input_text)
示例#3
0
 def test_gujarati_detected(self):
     from converters import convert_any_indic_to_braille
     input_text = "ગુજરાતી"
     (text, warnings) = convert_any_indic_to_braille(input_text)
     self.assertEqual(warnings, "")
     self.assertNotEqual(text, input_text)
示例#4
0
 def test_none_detected(self):
     from converters import convert_any_indic_to_braille, BB_ERR_UNKNOWN_SCRIPT
     (text, warnings) = convert_any_indic_to_braille("Non-indic text")
     self.assertEqual(text, "")
     self.assertEqual(warnings, BB_ERR_UNKNOWN_SCRIPT)
示例#5
0
 def test_multiple_detected(self):
     from converters import convert_any_indic_to_braille, BB_ERR_MANY_SCRIPTS
     (text, warnings) = convert_any_indic_to_braille("है ল")
     self.assertEqual(text, "")
     self.assertEqual(warnings, BB_ERR_MANY_SCRIPTS)
示例#6
0
 def test_tamil_detected(self):
     from converters import convert_any_indic_to_braille
     input_text = "தமிழ்"
     (text, warnings) = convert_any_indic_to_braille(input_text)
     self.assertEqual(warnings, "")
     self.assertNotEqual(text, input_text)
示例#7
0
 def test_gujarati_detected(self):
     from converters import convert_any_indic_to_braille
     input_text = "ગુજરાતી"
     (text, warnings) = convert_any_indic_to_braille(input_text)
     self.assertEqual(warnings, "")
     self.assertNotEqual(text, input_text)
示例#8
0
 def test_devanagari_detected(self):
     from converters import convert_any_indic_to_braille
     input_text = "देवनागरी"
     (text, warnings) = convert_any_indic_to_braille(input_text)
     self.assertEqual(warnings, "")
     self.assertNotEqual(text, input_text)
示例#9
0
 def test_multiple_detected(self):
     from converters import convert_any_indic_to_braille, BB_ERR_MANY_SCRIPTS
     (text, warnings) = convert_any_indic_to_braille("है ল")
     self.assertEqual(text, "")
     self.assertEqual(warnings, BB_ERR_MANY_SCRIPTS)
示例#10
0
 def test_none_detected(self):
     from converters import convert_any_indic_to_braille, BB_ERR_UNKNOWN_SCRIPT
     (text, warnings) = convert_any_indic_to_braille("Non-indic text")
     self.assertEqual(text, "")
     self.assertEqual(warnings, BB_ERR_UNKNOWN_SCRIPT)