зеркало из https://github.com/github/ruby.git
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
This commit is contained in:
Родитель
f9deff9759
Коммит
5733a57455
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче