diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-27 08:17:01 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-27 08:17:01 +0000 |
commit | 4365e64005ed77a6b5af4f77d133b0514f2028e5 (patch) | |
tree | c8609844cafd16d84429c46dd5787ba6c02956f4 /bootstraptest | |
parent | b16d73ae0c55db444026780871552b81693f5438 (diff) | |
download | ruby-4365e64005ed77a6b5af4f77d133b0514f2028e5.tar.gz |
bootstraptest/test_insns.rb: test newhashfromarray
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/test_insns.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bootstraptest/test_insns.rb b/bootstraptest/test_insns.rb index 6de5c60999..88f36bd0c2 100644 --- a/bootstraptest/test_insns.rb +++ b/bootstraptest/test_insns.rb @@ -112,6 +112,7 @@ tests = [ [ 'newhash', %q{ x = {}; x[x] = true }, ], [ 'newhash', %q{ x = true; { x => x }[x] }, ], + [ 'newhashfromarray', %q{ { a: true }[:a] }, ], [ 'newrange', %q{ x = 1; [*(0..x)][0] == 0 }, ], [ 'newrange', %q{ x = 1; [*(0...x)][0] == 0 }, ], |