1b69b148de
Still a long way to go, but these will help.
15 lines
468 B
Ruby
Executable file
15 lines
468 B
Ruby
Executable file
#!/usr/bin/env ruby
|
|
#coding: utf-8
|
|
|
|
require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
|
|
|
|
class WikiWordsTest < Test::Unit::TestCase
|
|
|
|
def test_utf8_characters_in_wiki_word
|
|
assert_equal "Æåle Øen", WikiWords.separate("ÆåleØen")
|
|
assert_equal "ÆÅØle Øen", WikiWords.separate("ÆÅØleØen")
|
|
assert_equal "Æe ÅØle Øen", WikiWords.separate("ÆeÅØleØen")
|
|
assert_equal "Legetøj", WikiWords.separate("Legetøj")
|
|
end
|
|
end
|