aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-14 21:52:45 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-14 21:52:45 +0000
commit5733a5745593909a4d5260264252e5465d02c964 (patch)
tree51839c8669a8f9e9cb6b5989f1354fb859274a69
parentf9deff9759177931e18400ac216186ea3f13ddcf (diff)
downloadruby-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--ChangeLog5
-rw-r--r--test/ruby/test_optimization.rb2
2 files changed, 6 insertions, 1 deletions
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 <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