Skip to content

Commit

Permalink
Add a test case for Russian.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Nov 29, 2008
1 parent d570277 commit f011487
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/test_whatlanguage.rb
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
require "test/unit"

require File.join(File.dirname(__FILE__), "..", "lib", "whatlanguage")
Expand All @@ -22,6 +23,10 @@ def test_spanish
def test_swedish
assert_equal :swedish, @wl.language("Den spanska räven rev en annan räv alldeles lagom.")
end

def test_russian
assert_equal :russian, @wl.language("Все новости в хронологическом порядке")
end

def test_nothing
assert_nil @wl.language("")
Expand All @@ -34,4 +39,4 @@ def test_something
def test_processor
assert_kind_of Hash, @wl.process_text("this is a test")
end
end
end

0 comments on commit f011487

Please sign in to comment.