diff --git a/ChangeLog b/ChangeLog index 5deae84b52..41c23a75b1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Jul 31 22:01:36 2013 Kouhei Sutou + + * test/rexml/test_notationdecl_parsetest.rb: Add tests that focus + public ID in external ID notation declaration. + Wed Jul 31 22:01:24 2013 Kazuhiro NISHIYAMA * parse.y: fix build error with bison-3.0. diff --git a/test/rexml/test_notationdecl_parsetest.rb b/test/rexml/test_notationdecl_parsetest.rb index 27433c8626..e46e66e1bb 100644 --- a/test/rexml/test_notationdecl_parsetest.rb +++ b/test/rexml/test_notationdecl_parsetest.rb @@ -25,6 +25,22 @@ class TestNotationDecl < Test::Unit::TestCase class TestExternID < self class TestPublic < self + class TestPublicIDLiteral < self + def test_single_quote + doctype = parse(<<-INTERNAL_SUBSET) + + INTERNAL_SUBSET + assert_equal("pubilc-id-literal", doctype.notation("name").public) + end + + def test_double_quote + doctype = parse(<<-INTERNAL_SUBSET) + + INTERNAL_SUBSET + assert_equal("pubilc-id-literal", doctype.notation("name").public) + end + end + class TestSystemLiteral < self def test_single_quote doctype = parse(<<-INTERNAL_SUBSET)