コード例 #1
0
 def test_init5(self):
     word = Word("y")
     assert word.word_syllabified == "-y"
コード例 #2
0
 def test_repr(self):
     word = Word("hierático.")
     assert word.__repr__() == "<Word: '-hie-rá-ti-co'>"
コード例 #3
0
 def test_init3(self):
     word = Word("¡.,+'melopea...!")
     assert word.word_syllabified == "-me-lo-pe-a"
コード例 #4
0
 def test_init4(self):
     word = Word("¡.,+'alcohol...!")
     assert word.word_syllabified == "-al-co-hol"
コード例 #5
0
 def test_init1(self):
     word = Word("¡.,+'onomatopeya...!")
     assert word.word_syllabified == "-o-no-ma-to-pe-ya"
コード例 #6
0
 def test_init2(self):
     word = Word("¡.,+'hierático...!")
     assert word.word_syllabified == "-hie-rá-ti-co"
コード例 #7
0
 def test_further_scans_2(self):
     word = Word("molestias")
     assert word.syllabify_word() == "-mo-les-tias"
コード例 #8
0
 def test_find_stressed_vowel1(self):
     word = Word("huida")
     assert word.consonant_rhyme == "ida"
コード例 #9
0
 def test_further_scans_1(self):
     word = Word("ahínco")
     assert word.syllabify_word() == "-a-hín-co"
コード例 #10
0
 def test_pre_syllabify4(self):
     word = Word("melopea")
     assert word.pre_syllabify() == "-me-lo-pe-a"
コード例 #11
0
 def test_pre_syllabify3(self):
     word = Word("muerte")
     assert word.pre_syllabify() == "-mu-er-te"
コード例 #12
0
 def test_pre_syllabify2(self):
     """Diphthongs still omited """
     word = Word("áureo")
     assert word.pre_syllabify() == "-á-u-re-o"
コード例 #13
0
 def test_pre_syllabify1(self):
     """Hiatus with 'h' inbetween vowels"""
     word = Word("ahínco")
     assert word.pre_syllabify() == "-a-hín-co"