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

ruby-changes:30227

From: kou <ko1@a...>
Date: Wed, 31 Jul 2013 21:38:52 +0900 (JST)
Subject: [ruby-changes:30227] kou:r42279 (trunk): * test/rexml/test_notationdecl_mixin.rb (TestNotationDecl#test_name):

kou	2013-07-31 21:38:41 +0900 (Wed, 31 Jul 2013)

  New Revision: 42279

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

  Log:
    * test/rexml/test_notationdecl_mixin.rb (TestNotationDecl#test_name):
      Move to ...
    * test/rexml/test_notationdecl_parsetest.rb
      (TestNotationDecl#test_name): ... here.

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

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42278)
+++ ChangeLog	(revision 42279)
@@ -1,3 +1,12 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jul 31 21:37:51 2013  Kouhei Sutou  <kou@c...>
+
+	* test/rexml/test_notationdecl_mixin.rb (TestNotationDecl#test_name):
+	  Move to ...
+	* test/rexml/test_notationdecl_parsetest.rb
+	  (TestNotationDecl#test_name): ... here.
+
+Wed Jul 31 21:37:47 2013  Kouhei Sutou  <kou@c...>
+
 Wed Jul 31 21:31:49 2013  Kouhei Sutou  <kou@c...>
 
 	* test/rexml/test_notationdecl_parsetest.rb: Remove setup because it
Index: test/rexml/test_notationdecl_mixin.rb
===================================================================
--- test/rexml/test_notationdecl_mixin.rb	(revision 42278)
+++ test/rexml/test_notationdecl_mixin.rb	(revision 42279)
@@ -29,10 +29,6 @@ class TestNotationDeclMixin < Test::Unit https://github.com/ruby/ruby/blob/trunk/test/rexml/test_notationdecl_mixin.rb#L29
     @doctype = REXML::Document.new(doc_string).doctype
   end
 
-  def test_name
-    assert_equal('n1', @doctype.notation('n1').name)
-  end
-
   def test_public_2
     assert_equal(@pubid1, @doctype.notation('n1').public)
     assert_equal(@pubid2, @doctype.notation('n2').public)
Index: test/rexml/test_notationdecl_parsetest.rb
===================================================================
--- test/rexml/test_notationdecl_parsetest.rb	(revision 42278)
+++ test/rexml/test_notationdecl_parsetest.rb	(revision 42279)
@@ -2,6 +2,11 @@ require 'test/unit' https://github.com/ruby/ruby/blob/trunk/test/rexml/test_notationdecl_parsetest.rb#L2
 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'>

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

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