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

ruby-changes:11902

From: matz <ko1@a...>
Date: Mon, 25 May 2009 08:00:20 +0900 (JST)
Subject: [ruby-changes:11902] Ruby:r23563 (trunk): * test/ruby/test_hash.rb (TestHash::test_equal2): recursive hashes

matz	2009-05-25 08:00:01 +0900 (Mon, 25 May 2009)

  New Revision: 23563

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

  Log:
    * test/ruby/test_hash.rb (TestHash::test_equal2): recursive hashes
      are handled properly now. ref: [ruby-core:23402]
    * test/ruby/test_m17n.rb (TestM17N#test_sprintf_p): test fixed

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_hash.rb
    trunk/test/ruby/test_m17n.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 23562)
+++ ChangeLog	(revision 23563)
@@ -3,6 +3,13 @@
 	* string.c (rb_str_partition): should use the converted result.  a
 	  patch from Marc-Andre Lafortune at [ruby-core:23540].
 
+Mon May 25 06:25:38 2009  Yukihiro Matsumoto  <matz@r...>
+
+	* test/ruby/test_hash.rb (TestHash::test_equal2): recursive hashes
+	  are handled properly now. ref: [ruby-core:23402]
+
+	* test/ruby/test_m17n.rb (TestM17N#test_sprintf_p): test fixed
+
 Mon May 25 05:32:19 2009  Yukihiro Matsumoto  <matz@r...>
 
 	* lib/cgi/core.rb (CGI::HTTP_STATUS): typo fixed.  a patch from
Index: test/ruby/test_m17n.rb
===================================================================
--- test/ruby/test_m17n.rb	(revision 23562)
+++ test/ruby/test_m17n.rb	(revision 23563)
@@ -770,7 +770,7 @@
     #assert_strenc("\"\xC2\xA1\"", 'Windows-31J', s("%p") % s("\xc2\xa1"))
     assert_strenc("\"\xC2\xA1\"", 'UTF-8', u("%p") % u("\xc2\xa1"))
 
-    assert_strenc('"\xC2\xA1"', 'US-ASCII', "%10p" % a("\xc2\xa1"))
+    assert_strenc('"\xC2\xA1"', 'ASCII-8BIT', "%10p" % a("\xc2\xa1"))
     assert_strenc("       \"\xC2\xA1\"", 'EUC-JP', "%10p" % e("\xc2\xa1"))
     #assert_strenc("       \"\xC2\xA1\"", 'Windows-31J', "%10p" % s("\xc2\xa1"))
     assert_strenc("       \"\xC2\xA1\"", 'UTF-8', "%10p" % u("\xc2\xa1"))
Index: test/ruby/test_hash.rb
===================================================================
--- test/ruby/test_hash.rb	(revision 23562)
+++ test/ruby/test_hash.rb	(revision 23563)
@@ -770,7 +770,9 @@
 
     h1 = {}; h1[h1] = h1; h1.rehash
     h2 = {}; h2[h2] = h2; h2.rehash
-    assert(h1 != h2)
+    # assert(h1 != h2)
+    # recursive hashes are handled properly now. [ruby-core:23402]
+    assert(h1 == h2)
   end
 
   def test_eql

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

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