instiki/test/unit/wiki_words_test.rb
Jacques Distler c3c33b68dd Multiple leading capital letters in a WikiWord
CMyApp  is a WikiWord (at least, on other Wiki systems, like TWiki).
Should allow that here

Also, choose a more obscure name for the thread-local variable tracking
included chunks.
2008-12-25 17:41:35 -06:00

19 lines
578 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
def test_multiple_leading_capital_letters
assert_equal "CMy App", WikiWords.separate("CMyApp")
end
end