diff options
Diffstat (limited to 'test/rexml/test_notationdecl_parsetest.rb')
-rw-r--r-- | test/rexml/test_notationdecl_parsetest.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/rexml/test_notationdecl_parsetest.rb b/test/rexml/test_notationdecl_parsetest.rb index 547195d47b..78787a41ab 100644 --- a/test/rexml/test_notationdecl_parsetest.rb +++ b/test/rexml/test_notationdecl_parsetest.rb @@ -2,6 +2,11 @@ require 'test/unit' require 'rexml/document' class TestNotationDecl < Test::Unit::TestCase + def test_name + doctype = parse("<!NOTATION name PUBLIC 'urn:public-id'>") + assert_equal("name", doctype.notation("name").name) + end + def test_notation doctype = parse(<<-INTERNAL_SUBSET) <!NOTATION n1 PUBLIC "-//HM//NOTATION TEST1//EN" 'urn:x-henrikmartensson.org:test5'> |