summaryrefslogtreecommitdiff
path: root/test/rexml/test_notationdecl_parsetest.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rexml/test_notationdecl_parsetest.rb')
-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