Skip to content

Commit

Permalink
Improved tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Mar 21, 2023
1 parent c6fd678 commit d5e5b40
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/stemmer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class TestStemmer < Minitest::Test
def test_works
stemmer = Mittens::Stemmer.new
assert_equal "tomato", stemmer.stem("tomatos")
assert_equal "consign", stemmer.stem("consignment")
end

def test_nil
Expand All @@ -15,7 +16,8 @@ def test_nil

def test_language
stemmer = Mittens::Stemmer.new(language: "french")
assert_equal "tomatos", stemmer.stem("tomatos")
assert_equal "continu", stemmer.stem("continuait")
assert_equal "mainten", stemmer.stem("maintenaient")
end

def test_languages
Expand Down

0 comments on commit d5e5b40

Please sign in to comment.