Sha256: 3861bc3f7203ce81eac5b93c8627d86e1f43ec8bce7bbf3b8fa86787e93a241e
Contents?: true
Size: 723 Bytes
Versions: 2
Compression:
Stored size: 723 Bytes
Contents
# test_entities.rb # 12. April 2007 # $:.unshift File.join(File.dirname(__FILE__),'..','lib') begin require "rubygems" require "clothred" rescue LoadError require "clothred" end require 'test/unit' class TestClothRedEntities < Test::Unit::TestCase ENTITIES_TEST = [ ["“", '"'], ["”", '"'], ["—", "--"], ["—", "--"], ["–","-"], ["…", "..."], ["×", " x "], ["™","(tm)"], ["®","(R)"], ["©","(c)"], ["’", "'"] ] def test_entities ENTITIES_TEST.each do |html, textile| test_html = ClothRed.new(html) result = test_html.to_textile assert_equal(textile,result) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ClothRed-0.3.1 | test/test_entities.rb |
ClothRed-0.4.1 | test/test_entities.rb |