Excessive form
This commit is contained in:
parent
8e47dc24d7
commit
f2d7616fa0
@ -64,6 +64,11 @@ module IkaConjugations
|
|||||||
def potential
|
def potential
|
||||||
Ichidan.new(potential_starter.kanji, potential_starter.kana, "to be able #{definition}")
|
Ichidan.new(potential_starter.kanji, potential_starter.kana, "to be able #{definition}")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def excessive
|
||||||
|
Ichidan.new(stem.kanji + "すぎる", stem.kana + "すぎる", "#{definition} too much")
|
||||||
|
end
|
||||||
|
|
||||||
class Ichidan < Verb
|
class Ichidan < Verb
|
||||||
def stem
|
def stem
|
||||||
all_but_last_character
|
all_but_last_character
|
||||||
|
@ -23,7 +23,7 @@ module IkaConjugations
|
|||||||
@aru = Verb::Godan.new("ある", "ある", "to be")
|
@aru = Verb::Godan.new("ある", "ある", "to be")
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_te_form
|
def test_te
|
||||||
assert_equal "見て", @miru.te.kanji
|
assert_equal "見て", @miru.te.kanji
|
||||||
assert_equal "みて", @miru.te.kana
|
assert_equal "みて", @miru.te.kana
|
||||||
assert_equal "飲んで", @nomu.te.kanji
|
assert_equal "飲んで", @nomu.te.kanji
|
||||||
@ -208,5 +208,12 @@ module IkaConjugations
|
|||||||
assert_equal "つれてこられる", @tsuretekuru.potential.dictionary.kana
|
assert_equal "つれてこられる", @tsuretekuru.potential.dictionary.kana
|
||||||
assert_equal "あれる", @aru.potential.dictionary.kana
|
assert_equal "あれる", @aru.potential.dictionary.kana
|
||||||
end
|
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
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user