[前][次][番号順一覧][スレッド一覧]

ruby-changes:30404

From: kou <ko1@a...>
Date: Sat, 10 Aug 2013 11:59:49 +0900 (JST)
Subject: [ruby-changes:30404] kou:r42483 (trunk): * test/rexml/parse/test_notation_declaration.rb (#test_system_public):

kou	2013-08-10 11:59:15 +0900 (Sat, 10 Aug 2013)

  New Revision: 42483

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42483

  Log:
    * test/rexml/parse/test_notation_declaration.rb (#test_system_public):
      Add a test for PUBLIC notation and SYSTEM notation order case.

  Modified files:
    trunk/ChangeLog
    trunk/test/rexml/parse/test_notation_declaration.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42482)
+++ ChangeLog	(revision 42483)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Aug 10 11:58:24 2013  Kouhei Sutou  <kou@c...>
+
+	* test/rexml/parse/test_notation_declaration.rb (#test_system_public):
+	  Add a test for PUBLIC notation and SYSTEM notation order case.
+
 Sat Aug 10 11:31:35 2013  Kouhei Sutou  <kou@c...>
 
 	* lib/rexml/parsers/baseparser.rb (REXML::Parsers::BaseParser::PUBLIC):
Index: test/rexml/parse/test_notation_declaration.rb
===================================================================
--- test/rexml/parse/test_notation_declaration.rb	(revision 42482)
+++ test/rexml/parse/test_notation_declaration.rb	(revision 42483)
@@ -83,6 +83,15 @@ class TestParseNotationDeclaration < Tes https://github.com/ruby/ruby/blob/trunk/test/rexml/parse/test_notation_declaration.rb#L83
         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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]