Beispiel #1
0
 def test_accentuation_finder10(self):
     assert Word.accentuation_finder("es-drú-ju-la") == 3
Beispiel #2
0
 def test_diphthongs_finder5(self):
     """ weak/aitch/weak -> prohibir """
     assert Word.diphthong_finder("o-hi") == "ohi"
Beispiel #3
0
 def test_diphthongs_finder7(self):
     """ strong_accented/weak -> náutico """
     assert Word.diphthong_finder("á-u") == "áu"
Beispiel #4
0
 def test_diphthongs_finder1(self):
     """ weak/strong -> especias """
     assert Word.diphthong_finder("i-a") == "ia"
Beispiel #5
0
 def test_diphthongs_finder3(self):
     """ weak/weak -> ciudad """
     assert Word.diphthong_finder("i-u") == "iu"
Beispiel #6
0
 def test_vowel_block_separator5(self):
     """ ist-mo -> CCCV -> CC-CV """
     assert Word.vowel_block_separator("stmo") == "st-mo"
Beispiel #7
0
 def test_vowel_block_separator8(self):
     """ ahínco """
     assert Word.vowel_block_separator("í") == "-í"
Beispiel #8
0
 def test_init2(self):
     word = Word("¡.,+'hierático...!")
     assert word.word_syllabified == "-hie-rá-ti-co"
Beispiel #9
0
 def test_init3(self):
     word = Word("¡.,+'melopea...!")
     assert word.word_syllabified == "-me-lo-pe-a"
Beispiel #10
0
 def test_find_stressed_vowel1(self):
     word = Word("huida")
     assert word.consonant_rhyme == "ida"
Beispiel #11
0
 def test_init1(self):
     word = Word("¡.,+'onomatopeya...!")
     assert word.word_syllabified == "-o-no-ma-to-pe-ya"
Beispiel #12
0
 def test_vowel_block_separator3(self):
     """ o-pro-bio -> C(rl)V -> -C(rl)V """
     assert Word.vowel_block_separator("pro") == "-pro"
Beispiel #13
0
 def test_accentuation_finder12(self):
     assert Word.accentuation_finder("-ma-ná") == 1
Beispiel #14
0
 def test_accentuation_finder11(self):
     assert Word.accentuation_finder("-ta-piz") == 1
Beispiel #15
0
 def test_vowel_block_separator3_5(self):
     """ car-los  -> (r)(l)V -> C-CV """
     assert Word.vowel_block_separator("rlo") == "r-lo"
Beispiel #16
0
 def test_init4(self):
     word = Word("¡.,+'alcohol...!")
     assert word.word_syllabified == "-al-co-hol"
Beispiel #17
0
 def test_vowel_block_separator4(self):
     """ gangs-ter -> CCCCV -> CCC-CV """
     assert Word.vowel_block_separator("ngste") == "ngs-te"
Beispiel #18
0
 def test_init5(self):
     word = Word("y")
     assert word.word_syllabified == "-y"
Beispiel #19
0
 def test_vowel_block_separator6(self):
     """ as-ca-zo -> CCV -> C-CV """
     assert Word.vowel_block_separator("sca") == "s-ca"
Beispiel #20
0
 def test_repr(self):
     word = Word("hierático.")
     assert word.__repr__() == "<Word: '-hie-rá-ti-co'>"
Beispiel #21
0
 def test_vowel_block_separator9(self):
     """ special case -> achicoria """
     assert Word.vowel_block_separator("chi") == "-chi"
Beispiel #22
0
 def test_vowel_block_separator3_1(self):
     """ is-ra-el -> (sn)(rl)V -> C-CV """
     assert Word.vowel_block_separator("sra") == "s-ra"
Beispiel #23
0
 def test_diphthongs_finder2(self):
     """ weak_special/strong -> agüero """
     assert Word.diphthong_finder("ü-e") == "üe"
Beispiel #24
0
 def test_vowel_block_separator3_2(self):
     """ is-la -> (sn)(rl)V -> C-CV """
     assert Word.vowel_block_separator("sla") == "s-la"
Beispiel #25
0
 def test_diphthongs_finder4(self):
     """ weak/weak_accented -> muerciélago """
     assert Word.diphthong_finder("i-é") == "ié"
Beispiel #26
0
 def test_vowel_block_separator3_3(self):
     """ in-ri -> (sn)(rl)V -> C-CV """
     assert Word.vowel_block_separator("nri") == "n-ri"
Beispiel #27
0
 def test_diphthongs_finder6(self):
     """ strong/weak -> aire """
     assert Word.diphthong_finder("a-i") == "ai"
Beispiel #28
0
 def test_vowel_block_separator3_4(self):
     """ an-le-ga-do -> (sn)(rl)V -> C-CV """
     assert Word.vowel_block_separator("nle") == "n-le"
Beispiel #29
0
 def test_diphthongs_finder8(self):
     """ same -> leer, chiita, zoológico """
     assert Word.diphthong_finder("e-e") == "e-e"
     assert Word.diphthong_finder("i-i") == "i-i"
     assert Word.diphthong_finder("A-ha") == "A-ha"
     assert Word.diphthong_finder("o-ho") == "o-ho"
Beispiel #30
0
 def test_accentuation_finder9(self):
     assert Word.accentuation_finder("-pro-pón-ga-me-lo") == 4