Permalink
Browse files

Add a test case for Russian.

  • Loading branch information...
1 parent d570277 commit f0114870907bc228093094437cfa8ccf0dafe60c @michaelklishin michaelklishin committed Nov 29, 2008
Showing with 6 additions and 1 deletion.
  1. +6 −1 test/test_whatlanguage.rb
View
7 test/test_whatlanguage.rb
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
require "test/unit"
require File.join(File.dirname(__FILE__), "..", "lib", "whatlanguage")
@@ -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("")
@@ -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.