From f2d7616fa041ded5274e88bc970faec04e1894df Mon Sep 17 00:00:00 2001 From: Bill Rossi Date: Mon, 18 Aug 2025 05:21:29 -0400 Subject: [PATCH] Excessive form --- lib/ika_conjugations/verb.rb | 5 +++++ test/ika_conjugations/test_verb.rb | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/ika_conjugations/verb.rb b/lib/ika_conjugations/verb.rb index c4eb1d5..371ab84 100644 --- a/lib/ika_conjugations/verb.rb +++ b/lib/ika_conjugations/verb.rb @@ -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 diff --git a/test/ika_conjugations/test_verb.rb b/test/ika_conjugations/test_verb.rb index 9c45d90..d93b7eb 100644 --- a/test/ika_conjugations/test_verb.rb +++ b/test/ika_conjugations/test_verb.rb @@ -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