2005-08-11 07:46:38 +02:00
|
|
|
#!/usr/bin/env ruby
|
2005-01-24 19:52:04 +01:00
|
|
|
|
2005-08-09 04:20:28 +02:00
|
|
|
require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
|
2005-01-24 19:52:04 +01:00
|
|
|
require 'wiki_words'
|
|
|
|
|
|
|
|
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
|