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

ruby-changes:30231

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

kou	2013-07-31 22:04:10 +0900 (Wed, 31 Jul 2013)

  New Revision: 42283

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

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

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

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42282)
+++ ChangeLog	(revision 42283)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jul 31 22:01:36 2013  Kouhei Sutou  <kou@c...>
+
+	* test/rexml/test_notationdecl_parsetest.rb: Add tests that focus
+	  public ID in external ID notation declaration.
+
 Wed Jul 31 22:01:24 2013  Kazuhiro NISHIYAMA  <zn@m...>
 
 	* parse.y: fix build error with bison-3.0.
Index: test/rexml/test_notationdecl_parsetest.rb
===================================================================
--- test/rexml/test_notationdecl_parsetest.rb	(revision 42282)
+++ test/rexml/test_notationdecl_parsetest.rb	(revision 42283)
@@ -25,6 +25,22 @@ class TestNotationDecl < Test::Unit::Tes https://github.com/ruby/ruby/blob/trunk/test/rexml/test_notationdecl_parsetest.rb#L25
 
   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)

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

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