Correct う -> わ vowel shifts

This commit is contained in:
Bill Rossi 2025-08-18 05:27:20 -04:00
parent f2d7616fa0
commit 484d6418b6
3 changed files with 8 additions and 3 deletions

View File

@ -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" => "" },

View File

@ -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")

View File

@ -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