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

ruby-changes:30234

From: kou <ko1@a...>
Date: Wed, 31 Jul 2013 22:53:14 +0900 (JST)
Subject: [ruby-changes:30234] kou:r42286 (trunk): * test/rexml/test_notationdecl_parsetest.rb: Add tests that focus

kou	2013-07-31 22:52:06 +0900 (Wed, 31 Jul 2013)

  New Revision: 42286

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

  Log:
    * test/rexml/test_notationdecl_parsetest.rb: Add tests that focus
      system literal in external ID system notation declaration.

  Modified files:
    trunk/ChangeLog
    trunk/test/rexml/test_notationdecl_parsetest.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42285)
+++ ChangeLog	(revision 42286)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jul 31 22:50:51 2013  Kouhei Sutou  <kou@c...>
+
+	* test/rexml/test_notationdecl_parsetest.rb: Add tests that focus
+	  system literal in external ID system notation declaration.
+
 Wed Jul 31 22:36:21 2013  Tanaka Akira  <akr@f...>
 
 	* bignum.c (bary_cmp): Extracted from rb_big_cmp.
Index: test/rexml/test_notationdecl_parsetest.rb
===================================================================
--- test/rexml/test_notationdecl_parsetest.rb	(revision 42285)
+++ test/rexml/test_notationdecl_parsetest.rb	(revision 42286)
@@ -24,6 +24,22 @@ class TestNotationDecl < Test::Unit::Tes https://github.com/ruby/ruby/blob/trunk/test/rexml/test_notationdecl_parsetest.rb#L24
   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

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

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