コード例 #1
0
 def test_given_word_without_diacritics_when_diacritizing_then_proper_options_done(
         self):
     word = "isc"
     res = prp.diacritize_fully(word)
     self.assertEqual(4, len(res))
     self.assertTrue("iść" in res)
     self.assertTrue("isć" in res)
     self.assertTrue("iśc" in res)
     self.assertTrue("isc" in res)
コード例 #2
0
 def test_given_long_word_with_z_without_diacritics4_when_diacritizing_then_proper_options_done(
         self):
     word = "wieza"
     res = prp.diacritize_fully(word)
     self.assertTrue("wieża" in res)
コード例 #3
0
 def test_given_long_word_with_z_without_diacritics2_when_diacritizing_then_proper_options_done(
         self):
     word = "zebrak"
     res = prp.diacritize_fully(word)
     print(res)
     self.assertTrue("żebrak" in res)
コード例 #4
0
 def test_given_long_word_without_diacritics_when_diacritizing_then_proper_options_done(
         self):
     word = "poszlyscie"
     res = prp.diacritize_fully(word)
     self.assertTrue("poszłyście" in res)