diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-14 21:52:45 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-14 21:52:45 +0000 |
commit | 5733a5745593909a4d5260264252e5465d02c964 (patch) | |
tree | 51839c8669a8f9e9cb6b5989f1354fb859274a69 | |
parent | f9deff9759177931e18400ac216186ea3f13ddcf (diff) | |
download | ruby-5733a5745593909a4d5260264252e5465d02c964.tar.gz |
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
-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 |