예제 #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)