summaryrefslogtreecommitdiff
path: root/test/rexml
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-10 02:59:15 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-10 02:59:15 +0000
commitb729f2da308e9f6ec74299c39ca1bfbb19f5c804 (patch)
tree5038f6f16fcfbca798c863d8fe224de319278ecb /test/rexml
parent6d18dd8e4d786b84c3b215764244da74b4943446 (diff)
* 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
Diffstat (limited to 'test/rexml')
-rw-r--r--test/rexml/parse/test_notation_declaration.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/rexml/parse/test_notation_declaration.rb b/test/rexml/parse/test_notation_declaration.rb
index af070dd..4568885 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)
+<!NOTATION public-name PUBLIC "public-id-literal" 'system-literal'>
+<!NOTATION system-name SYSTEM "system-literal">
+ INTERNAL_SUBSET
+ assert_equal(["public-name", "system-name"],
+ doctype.notations.collect(&:name))
+ end
end
end
end