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

ruby-changes:32387

From: naruse <ko1@a...>
Date: Tue, 31 Dec 2013 06:11:23 +0900 (JST)
Subject: [ruby-changes:32387] naruse:r44466 (ruby_2_1): fix ruby/test_hash.rb [Bug #9223]

naruse	2013-12-31 06:11:18 +0900 (Tue, 31 Dec 2013)

  New Revision: 44466

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

  Log:
    fix ruby/test_hash.rb [ruby-core:59154] [Bug #9223]
    
    the behavior is under 2.2.0

  Modified files:
    branches/ruby_2_1/test/ruby/test_hash.rb
    branches/ruby_2_1/version.h
Index: ruby_2_1/version.h
===================================================================
--- ruby_2_1/version.h	(revision 44465)
+++ ruby_2_1/version.h	(revision 44466)
@@ -1,10 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/version.h#L1
 #define RUBY_VERSION "2.1.1"
-#define RUBY_RELEASE_DATE "2013-12-27"
-#define RUBY_PATCHLEVEL 1
+#define RUBY_RELEASE_DATE "2013-12-31"
+#define RUBY_PATCHLEVEL 2
 
 #define RUBY_RELEASE_YEAR 2013
 #define RUBY_RELEASE_MONTH 12
-#define RUBY_RELEASE_DAY 27
+#define RUBY_RELEASE_DAY 31
 
 #include "ruby/version.h"
 
Index: ruby_2_1/test/ruby/test_hash.rb
===================================================================
--- ruby_2_1/test/ruby/test_hash.rb	(revision 44465)
+++ ruby_2_1/test/ruby/test_hash.rb	(revision 44466)
@@ -558,7 +558,7 @@ class TestHash < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/ruby_2_1/test/ruby/test_hash.rb#L558
     assert_equal(h3, h.reject {|k,v| v })
     assert_equal(base, h)
 
-    return unless RUBY_VERSION > "2.1.0"
+    return unless RUBY_VERSION < "2.2.0" # [ruby-core:59154] [Bug #9223]
 
     h.instance_variable_set(:@foo, :foo)
     h.default = 42

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

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