Skip to content

Commit

Permalink
Add tokenizer test for other languages
Browse files Browse the repository at this point in the history
  • Loading branch information
arjan committed Mar 7, 2024
1 parent 7b92644 commit 8b466ab
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/bubble_match/sentence/tokenizer_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,13 @@ defmodule BubbleMatch.Sentence.TokenizerTest do
assert [] = Tokenizer.tokenize(" ")
assert [] = Tokenizer.tokenize("")
end

test "other languages" do
# polish
assert [_, _] = Tokenizer.tokenize("dzień dobry")
# arabic
assert [_, _] = Tokenizer.tokenize("صباح الخير")
# ukrainan
assert [_, _] = Tokenizer.tokenize("Добрий ранок")
end
end
Expand Down

0 comments on commit 8b466ab

Please sign in to comment.