Some Tests for Revision 666

This commit is contained in:
Jacques Distler 2010-07-22 17:36:37 -05:00
parent f6e9d17f9b
commit 8e57e97869

View file

@ -1,5 +1,5 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
# encoding: UTF-8 #coding: UTF-8
require Rails.root.join('test', 'test_helper') require Rails.root.join('test', 'test_helper')
require 'chunks/wiki' require 'chunks/wiki'
@ -12,6 +12,14 @@ class WikiTest < Test::Unit::TestCase
match(WikiChunk::Word, 'This is a WikiWord okay?', :page_name => 'WikiWord') match(WikiChunk::Word, 'This is a WikiWord okay?', :page_name => 'WikiWord')
end end
def test_cyrillic
match(WikiChunk::Word, 'This is a НовойСтраницы okay?', :page_name => 'НовойСтраницы')
end
def test_cyrillic_lowercase
no_match(WikiChunk::Word, 'This is a Новойстраницы?')
end
def test_lowercase_accented def test_lowercase_accented
no_match(WikiChunk::Word, "This is a Refer\303\252ncia?") no_match(WikiChunk::Word, "This is a Refer\303\252ncia?")
end end