Sha256: 96463109b3e9574d45ab070ea028a8aba97e049d9582071115c0f32d38b0726a
Contents?: true
Size: 534 Bytes
Versions: 15
Compression:
Stored size: 534 Bytes
Contents
# encoding: UTF-8 require_relative "./test_helper" class HTMLEntities::XHTML1Test < Test::Unit::TestCase attr_reader :html_entities def setup @html_entities = HTMLEntities.new('xhtml1') end def test_should_encode_apos_entity assert_equal "'", html_entities.encode("'", :basic) end def test_should_decode_apos_entity assert_equal "é'", html_entities.decode("é'") end def test_should_not_decode_dotted_entity assert_equal "&b.Theta;", html_entities.decode("&b.Theta;") end end
Version data entries
15 entries across 15 versions & 8 rubygems