From 4365e64005ed77a6b5af4f77d133b0514f2028e5 Mon Sep 17 00:00:00 2001 From: kazu Date: Sat, 27 Oct 2018 08:17:01 +0000 Subject: bootstraptest/test_insns.rb: test newhashfromarray git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_insns.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'bootstraptest') 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 }, ], -- cgit v1.2.3