ruby-changes:53171
From: kazu <ko1@a...>
Date: Sat, 27 Oct 2018 17:17:06 +0900 (JST)
Subject: [ruby-changes:53171] kazu:r65385 (trunk): bootstraptest/test_insns.rb: test newhashfromarray
kazu 2018-10-27 17:17:01 +0900 (Sat, 27 Oct 2018) New Revision: 65385 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65385 Log: bootstraptest/test_insns.rb: test newhashfromarray Modified files: trunk/bootstraptest/test_insns.rb Index: bootstraptest/test_insns.rb =================================================================== --- bootstraptest/test_insns.rb (revision 65384) +++ bootstraptest/test_insns.rb (revision 65385) @@ -112,6 +112,7 @@ tests = [ https://github.com/ruby/ruby/blob/trunk/bootstraptest/test_insns.rb#L112 [ '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 }, ], -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/