From b729f2da308e9f6ec74299c39ca1bfbb19f5c804 Mon Sep 17 00:00:00 2001 From: kou Date: Sat, 10 Aug 2013 02:59:15 +0000 Subject: * test/rexml/parse/test_notation_declaration.rb (#test_system_public): Add a test for PUBLIC notation and SYSTEM notation order case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ test/rexml/parse/test_notation_declaration.rb | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index a6f34d7679..446f5666e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Aug 10 11:58:24 2013 Kouhei Sutou + + * test/rexml/parse/test_notation_declaration.rb (#test_system_public): + Add a test for PUBLIC notation and SYSTEM notation order case. + Sat Aug 10 11:31:35 2013 Kouhei Sutou * lib/rexml/parsers/baseparser.rb (REXML::Parsers::BaseParser::PUBLIC): diff --git a/test/rexml/parse/test_notation_declaration.rb b/test/rexml/parse/test_notation_declaration.rb index af070dd060..45688858c0 100644 --- a/test/rexml/parse/test_notation_declaration.rb +++ b/test/rexml/parse/test_notation_declaration.rb @@ -83,6 +83,15 @@ class TestParseNotationDeclaration < Test::Unit::TestCase assert_equal(["system-name", "public-name"], doctype.notations.collect(&:name)) end + + def test_public_system + doctype = parse(<<-INTERNAL_SUBSET) + + + INTERNAL_SUBSET + assert_equal(["public-name", "system-name"], + doctype.notations.collect(&:name)) + end end end end -- cgit v1.2.3