spec/zenlish/lang/dictionary_spec.rb in zenlish-0.2.04 vs spec/zenlish/lang/dictionary_spec.rb in zenlish-0.2.05

- old
+ new

@@ -26,18 +26,18 @@ expect(common_nouns.all? { |c_n| lemmas.include?(c_n) }).to be_truthy end let(:present_1sg) { [:first, :singular, :present, nil] } - let(:present_2sg) { [:second, :singular, :present, nil] } + let(:present_2sg) { [:second, :singular, :present, nil] } let(:present_3sg) { [:third, :singular, :present, nil] } let(:present_1pl) { [:first, :plural, :present, nil] } let(:progressive) { [nil, nil, :progressive, nil] } let(:past_simple) { [:first, :singular, :past_simple, nil] } let(:past_simple_2sg) { [:second, :singular, :past_simple, nil] } let(:past_simple_3sg) { [:third, :singular, :past_simple, nil] } - let(:past_simple_1pl) { [:first, :plural, :past_simple, nil] } + let(:past_simple_1pl) { [:first, :plural, :past_simple, nil] } let(:past_participle) { [nil, nil, :past_participle, nil] } def test_inflection_of(verb_lexeme, pairs, drop_last_column = false) pairs.each do |(constraints, expected_form)| restriction = drop_last_column ? constraints.slice(0..-2) : constraints @@ -54,11 +54,11 @@ [progressive, 'becoming'], [past_simple, 'became'], [past_participle, 'become'] ] test_inflection_of(lexm, expectations_1) - + lexm = subject.get_lexeme('do', WClasses::IrregularVerbDo) expectations_2 = [ [present_1sg, 'do'], [present_3sg, 'does'], [present_1pl, 'do'], @@ -75,13 +75,13 @@ [present_1pl, 'have'], [progressive, 'having'], [past_simple, 'had'], [past_participle, 'had'] ] - test_inflection_of(lexm, expectations_3, true) + test_inflection_of(lexm, expectations_3, true) end - + it 'should know how to inflect the verb be' do [WClasses::IrregularVerbBe, WClasses::AuxiliaryBe].each do |wclass| lexm = subject.get_lexeme('be', wclass) expectations_1 = [ [present_1sg, 'am'], @@ -91,15 +91,15 @@ [progressive, 'being'], [past_simple, 'was'], [past_simple_2sg, 'were'], [past_simple_3sg, 'was'], [past_simple_1pl, 'were'], - [past_participle, 'been'] + [past_participle, 'been'] ] test_inflection_of(lexm, expectations_1, true) end end - + end # context end # describe end # module end # module \ No newline at end of file