diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/ruby/test_optimization.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Wed Oct 15 06:50:29 2014 Eric Wong <e@80x24.org> + + * test/ruby/test_optimization.rb (test_hash_aset_with): + assert assignment + Wed Oct 15 04:56:27 2014 Zachary Scott <e@zzak.io> * gc.c (rb_obj_id): [DOC] Fix typo, clean up sentence, and wrap cols diff --git a/test/ruby/test_optimization.rb b/test/ruby/test_optimization.rb index f991beaaa5..40b1cbaa7b 100644 --- a/test/ruby/test_optimization.rb +++ b/test/ruby/test_optimization.rb @@ -164,7 +164,7 @@ class TestRubyOptimization < Test::Unit::TestCase 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 |