diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2019-09-03 01:39:00 +0900 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2019-09-03 01:39:00 +0900 |
commit | 1a5a01e9ce9bf69944e4e37a33c8b044657a200a (patch) | |
tree | 059d846468a81b93ce46e0b265c09ea98adbdce3 /bootstraptest | |
parent | e13da00824e0979b2417bcffe94a8668cab7532c (diff) | |
download | ruby-1a5a01e9ce9bf69944e4e37a33c8b044657a200a.tar.gz |
Add insn tests for newarraykwsplat
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 fe0b01a97e..9deb57cf23 100644 --- a/bootstraptest/test_insns.rb +++ b/bootstraptest/test_insns.rb @@ -95,6 +95,7 @@ tests = [ [ 'intern', %q{ :"#{true}" }, ], [ 'newarray', %q{ ["true"][0] }, ], + [ 'newarraykwsplat', %q{ [**{x:'true'}][0][:x] }, ], [ 'duparray', %q{ [ true ][0] }, ], [ 'expandarray', %q{ y = [ true, false, nil ]; x, = y; x }, ], [ 'expandarray', %q{ y = [ true, false, nil ]; x, *z = y; x }, ], |