summaryrefslogtreecommitdiff
path: root/test/rexml
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-31 13:52:06 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-31 13:52:06 +0000
commit7f6c69b14297bf89ec5aca5a7f057f884d180e02 (patch)
treeeb9067b1f1ede7884f15acb92676bd34360c74bb /test/rexml
parent621d2b3d6cc2e9caf707840c63259552500cbe1c (diff)
* test/rexml/test_notationdecl_parsetest.rb: Add tests that focus
system literal in external ID system notation declaration. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rexml')
-rw-r--r--test/rexml/test_notationdecl_parsetest.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/rexml/test_notationdecl_parsetest.rb b/test/rexml/test_notationdecl_parsetest.rb
index 25baf1f..b9c4b22 100644
--- a/test/rexml/test_notationdecl_parsetest.rb
+++ b/test/rexml/test_notationdecl_parsetest.rb
@@ -24,6 +24,22 @@ class TestNotationDecl < Test::Unit::TestCase
end
class TestExternalID < self
+ class TestSystem < self
+ def test_single_quote
+ doctype = parse(<<-INTERNAL_SUBSET)
+<!NOTATION name SYSTEM 'system-literal'>
+ INTERNAL_SUBSET
+ assert_equal("system-literal", doctype.notation("name").system)
+ end
+
+ def test_double_quote
+ doctype = parse(<<-INTERNAL_SUBSET)
+<!NOTATION name SYSTEM "system-literal">
+ INTERNAL_SUBSET
+ assert_equal("system-literal", doctype.notation("name").system)
+ end
+ end
+
class TestPublic < self
class TestPublicIDLiteral < self
def test_single_quote