ruby-changes:35838
From: normal <ko1@a...>
Date: Wed, 15 Oct 2014 06:52:59 +0900 (JST)
Subject: [ruby-changes:35838] normal:r47920 (trunk): test/ruby/test_optimization.rb (test_hash_aset_with): assert assignment
normal 2014-10-15 06:52:45 +0900 (Wed, 15 Oct 2014) New Revision: 47920 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47920 Log: test/ruby/test_optimization.rb (test_hash_aset_with): assert assignment Modified files: trunk/ChangeLog trunk/test/ruby/test_optimization.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 47919) +++ ChangeLog (revision 47920) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Oct 15 06:50:29 2014 Eric Wong <e@8...> + + * test/ruby/test_optimization.rb (test_hash_aset_with): + assert assignment + Wed Oct 15 04:56:27 2014 Zachary Scott <e@z...> * gc.c (rb_obj_id): [DOC] Fix typo, clean up sentence, and wrap cols Index: test/ruby/test_optimization.rb =================================================================== --- test/ruby/test_optimization.rb (revision 47919) +++ test/ruby/test_optimization.rb (revision 47920) @@ -164,7 +164,7 @@ class TestRubyOptimization < Test::Unit: https://github.com/ruby/ruby/blob/trunk/test/ruby/test_optimization.rb#L164 assert_equal 1, h["foo"] = 1 assert_redefine_method('Hash', '[]=', <<-end) h = {} - h["foo"] = 1 + assert_equal 1, h["foo"] = 1, "assignment always returns value set" assert_nil h["foo"] end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/