Excessive form

This commit is contained in:
Bill Rossi 2025-08-18 05:21:29 -04:00
parent 8e47dc24d7
commit f2d7616fa0
2 changed files with 13 additions and 1 deletions

View File

@ -64,6 +64,11 @@ module IkaConjugations
def potential
Ichidan.new(potential_starter.kanji, potential_starter.kana, "to be able #{definition}")
end
def excessive
Ichidan.new(stem.kanji + "すぎる", stem.kana + "すぎる", "#{definition} too much")
end
class Ichidan < Verb
def stem
all_but_last_character

View File

@ -23,7 +23,7 @@ module IkaConjugations
@aru = Verb::Godan.new("ある", "ある", "to be")
end
def test_te_form
def test_te
assert_equal "見て", @miru.te.kanji
assert_equal "みて", @miru.te.kana
assert_equal "飲んで", @nomu.te.kanji
@ -208,5 +208,12 @@ module IkaConjugations
assert_equal "つれてこられる", @tsuretekuru.potential.dictionary.kana
assert_equal "あれる", @aru.potential.dictionary.kana
end
def test_excessive
assert_equal "見すぎる", @miru.excessive.dictionary.kanji
assert_equal "飲みすぎる", @nomu.excessive.dictionary.kanji
assert_equal "to drink too much", @nomu.excessive.definition
assert_equal "べんきょうしすぎました", @benkyousuru.excessive.long_form_past_positive.kana
end
end
end