Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)