diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-31 13:04:10 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-31 13:04:10 +0000 |
commit | a41ab7b3b6389da755eeccf429c9ca24f2ef903f (patch) | |
tree | 3b06c4475aac2e133746b0383f34e8457a7337f2 /test/rexml | |
parent | 434826c0e9d3e3b48d99a39b7ad7626a6f1ae2eb (diff) | |
download | ruby-a41ab7b3b6389da755eeccf429c9ca24f2ef903f.tar.gz |
* test/rexml/test_notationdecl_parsetest.rb: Add tests that focus
public ID in external ID notation declaration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rexml')
-rw-r--r-- | test/rexml/test_notationdecl_parsetest.rb | 16 |
1 files changed, 16 insertions, 0 deletions
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) +<!NOTATION name PUBLIC 'public-id-literal' "system-literal"> + INTERNAL_SUBSET + assert_equal("pubilc-id-literal", doctype.notation("name").public) + end + + def test_double_quote + doctype = parse(<<-INTERNAL_SUBSET) +<!NOTATION name PUBLIC "public-id-literal" "system-literal"> + INTERNAL_SUBSET + assert_equal("pubilc-id-literal", doctype.notation("name").public) + end + end + class TestSystemLiteral < self def test_single_quote doctype = parse(<<-INTERNAL_SUBSET) |