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

ruby-changes:19707

From: kou <ko1@a...>
Date: Fri, 27 May 2011 23:58:01 +0900 (JST)
Subject: [ruby-changes:19707] kou:r31752 (trunk): * test/rexml/test_core.rb (Tester::test_text_frozen): split frozen

kou	2011-05-27 23:57:55 +0900 (Fri, 27 May 2011)

  New Revision: 31752

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

  Log:
    * test/rexml/test_core.rb (Tester::test_text_frozen): split frozen
      string test. refs #4783

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

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 31751)
+++ ChangeLog	(revision 31752)
@@ -1,3 +1,8 @@
+Fri May 27 23:56:54 2011  Kouhei Sutou  <kou@c...>
+
+	* test/rexml/test_core.rb (Tester::test_text_frozen): split frozen
+	  string test. refs #4783
+
 Fri May 27 22:46:23 2011  Nobuyoshi Nakada  <nobu@r...>
 
 	* tool/rbinstall.rb (gem): install gemspec of json.  fixed #4784
Index: test/rexml/test_core.rb
===================================================================
--- test/rexml/test_core.rb	(revision 31751)
+++ test/rexml/test_core.rb	(revision 31752)
@@ -349,9 +349,6 @@
     assert_equal(string, text.to_s)
     text2 = Text.new(text)
     assert_equal(text, text2)
-    string = "Frozen".freeze
-    text3 = Text.new(string)
-    assert_equal(string, text3.to_s)
     #testing substitution
     string = "0 < ( 1 & 1 )"
     correct = "0 &lt; ( 1 &amp; 1 )"
@@ -403,6 +400,12 @@
     assert_equal( '<a><b/><c/></a>', doc.to_s )
   end
 
+  def test_text_frozen
+    string = "Frozen".freeze
+    text = Text.new(string)
+    assert_equal(string, text.to_s)
+  end
+
   def test_xmldecl
     source = "<?xml version='1.0'?>"
     # test args

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

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