Sha256: 3c1c82b447b9bf48327ec1cc136c7aa731731e8327798902d74ba13247c00a42

Contents?: true

Size: 416 Bytes

Versions: 4

Compression:

Stored size: 416 Bytes

Contents

require "test/unit"
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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
Pimki-1.0.092 app/models/wiki_words_test.rb
Pimki-1.2.092 app/models/wiki_words_test.rb
Pimki-1.3.092 app/models/wiki_words_test.rb
Pimki-1.1.092 app/models/wiki_words_test.rb