Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add a test case for Russian.

  • Loading branch information...
commit f0114870907bc228093094437cfa8ccf0dafe60c 1 parent d570277
Michael Klishin authored

Showing 1 changed file with 6 additions and 1 deletion. Show diff stats Hide diff stats

  1. 7  test/test_whatlanguage.rb
7  test/test_whatlanguage.rb
... ...
@@ -1,3 +1,4 @@
  1
+# -*- coding: utf-8 -*-
1 2
 require "test/unit"
2 3
 
3 4
 require File.join(File.dirname(__FILE__), "..", "lib", "whatlanguage")
@@ -22,6 +23,10 @@ def test_spanish
22 23
   def test_swedish
23 24
     assert_equal :swedish, @wl.language("Den spanska räven rev en annan räv alldeles lagom.")
24 25
   end
  26
+
  27
+  def test_russian
  28
+    assert_equal :russian, @wl.language("Все новости в хронологическом порядке")
  29
+  end
25 30
   
26 31
   def test_nothing
27 32
     assert_nil @wl.language("")
@@ -34,4 +39,4 @@ def test_something
34 39
   def test_processor
35 40
     assert_kind_of Hash, @wl.process_text("this is a test")
36 41
   end
37  
-end
  42
+end

0 notes on commit f011487

Please sign in to comment.
Something went wrong with that request. Please try again.