Correct う -> わ
vowel shifts
This commit is contained in:
parent
f2d7616fa0
commit
484d6418b6
@ -1,7 +1,7 @@
|
|||||||
module IkaConjugations
|
module IkaConjugations
|
||||||
U_VOWEL_CHANGES = {
|
U_VOWEL_CHANGES = {
|
||||||
"る" => { "a" => "ら", "i" => "り", "u" => "る", "e" => "れ", "o" => "ろ" },
|
"る" => { "a" => "ら", "i" => "り", "u" => "る", "e" => "れ", "o" => "ろ" },
|
||||||
"う" => { "a" => "あ", "i" => "い", "u" => "う", "e" => "え", "o" => "お" },
|
"う" => { "a" => "わ", "i" => "い", "u" => "う", "e" => "え", "o" => "お" },
|
||||||
"つ" => { "a" => "た", "i" => "ち", "u" => "つ", "e" => "て", "o" => "と" },
|
"つ" => { "a" => "た", "i" => "ち", "u" => "つ", "e" => "て", "o" => "と" },
|
||||||
"す" => { "a" => "さ", "i" => "し", "u" => "す", "e" => "せ", "o" => "そ" },
|
"す" => { "a" => "さ", "i" => "し", "u" => "す", "e" => "せ", "o" => "そ" },
|
||||||
"く" => { "a" => "か", "i" => "き", "u" => "く", "e" => "け", "o" => "こ" },
|
"く" => { "a" => "か", "i" => "き", "u" => "く", "e" => "け", "o" => "こ" },
|
||||||
|
@ -44,7 +44,7 @@ module IkaConjugations
|
|||||||
|
|
||||||
au = KanaKanji.new("会う", "あう")
|
au = KanaKanji.new("会う", "あう")
|
||||||
assert_equal "う", au.last_character
|
assert_equal "う", au.last_character
|
||||||
assert_equal "あ", au.last_character("a")
|
assert_equal "わ", au.last_character("a")
|
||||||
assert_equal "い", au.last_character("i")
|
assert_equal "い", au.last_character("i")
|
||||||
assert_equal "う", au.last_character("u")
|
assert_equal "う", au.last_character("u")
|
||||||
assert_equal "え", au.last_character("e")
|
assert_equal "え", au.last_character("e")
|
||||||
|
@ -4,7 +4,7 @@ require "minitest/autorun"
|
|||||||
module IkaConjugations
|
module IkaConjugations
|
||||||
class TestVerb < Minitest::Test
|
class TestVerb < Minitest::Test
|
||||||
def setup
|
def setup
|
||||||
@miru = Verb::Ichidan.new("見る", "みる", "to look")
|
@miru = Verb::Ichidan.new("見る", "みる", "to see")
|
||||||
@nomu = Verb::Godan.new("飲む", "のむ", "to drink")
|
@nomu = Verb::Godan.new("飲む", "のむ", "to drink")
|
||||||
@au = Verb::Godan.new("会う", "あう", "to meet")
|
@au = Verb::Godan.new("会う", "あう", "to meet")
|
||||||
@matsu = Verb::Godan.new("待つ", "まつ", "to wait")
|
@matsu = Verb::Godan.new("待つ", "まつ", "to wait")
|
||||||
@ -111,6 +111,8 @@ module IkaConjugations
|
|||||||
assert_equal "連れて来ない", @tsuretekuru.short_form_present_negative.kanji
|
assert_equal "連れて来ない", @tsuretekuru.short_form_present_negative.kanji
|
||||||
assert_equal "つれてこない", @tsuretekuru.short_form_present_negative.kana
|
assert_equal "つれてこない", @tsuretekuru.short_form_present_negative.kana
|
||||||
assert_equal "ない", @aru.short_form_present_negative.kana
|
assert_equal "ない", @aru.short_form_present_negative.kana
|
||||||
|
assert_equal "会わない", @au.short_form_present_negative.kanji
|
||||||
|
assert_equal "あわない", @au.short_form_present_negative.kana
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_long_form_past_positive
|
def test_long_form_past_positive
|
||||||
@ -175,6 +177,8 @@ module IkaConjugations
|
|||||||
assert_equal "連れて来なかった", @tsuretekuru.short_form_past_negative.kanji
|
assert_equal "連れて来なかった", @tsuretekuru.short_form_past_negative.kanji
|
||||||
assert_equal "つれてこなかった", @tsuretekuru.short_form_past_negative.kana
|
assert_equal "つれてこなかった", @tsuretekuru.short_form_past_negative.kana
|
||||||
assert_equal "なかった", @aru.short_form_past_negative.kana
|
assert_equal "なかった", @aru.short_form_past_negative.kana
|
||||||
|
assert_equal "会わなかった", @au.short_form_past_negative.kanji
|
||||||
|
assert_equal "あわなかった", @au.short_form_past_negative.kana
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_desire
|
def test_desire
|
||||||
@ -196,6 +200,7 @@ module IkaConjugations
|
|||||||
def test_potential
|
def test_potential
|
||||||
assert_equal "見られる", @miru.potential.dictionary.kanji
|
assert_equal "見られる", @miru.potential.dictionary.kanji
|
||||||
assert_equal "みられる", @miru.potential.dictionary.kana
|
assert_equal "みられる", @miru.potential.dictionary.kana
|
||||||
|
assert_equal "to be able to see", @miru.potential.definition
|
||||||
assert_equal "飲める", @nomu.potential.dictionary.kanji
|
assert_equal "飲める", @nomu.potential.dictionary.kanji
|
||||||
assert_equal "のめる", @nomu.potential.dictionary.kana
|
assert_equal "のめる", @nomu.potential.dictionary.kana
|
||||||
assert_equal "できる", @suru.potential.dictionary.kanji
|
assert_equal "できる", @suru.potential.dictionary.kanji
|
||||||
|
Loading…
Reference in New Issue
Block a user