From 5733a5745593909a4d5260264252e5465d02c964 Mon Sep 17 00:00:00 2001 From: normal Date: Tue, 14 Oct 2014 21:52:45 +0000 Subject: [PATCH] test/ruby/test_optimization.rb (test_hash_aset_with): assert assignment git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ test/ruby/test_optimization.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8744544084..1cec597f5c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Oct 15 06:50:29 2014 Eric Wong + + * test/ruby/test_optimization.rb (test_hash_aset_with): + assert assignment + Wed Oct 15 04:56:27 2014 Zachary Scott * 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