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 /test/ruby/test_jit.rb | |
parent | e13da00824e0979b2417bcffe94a8668cab7532c (diff) |
Add insn tests for newarraykwsplat
Diffstat (limited to 'test/ruby/test_jit.rb')
-rw-r--r-- | test/ruby/test_jit.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb index 453290d2f0..1c1a07c944 100644 --- a/test/ruby/test_jit.rb +++ b/test/ruby/test_jit.rb @@ -248,6 +248,10 @@ class TestJIT < Test::Unit::TestCase end; end + def test_compile_insn_newarraykwsplat + assert_compile_once('[**{ x: 1 }]', result_inspect: '[{:x=>1}]', insns: %i[newarraykwsplat]) + end + def test_compile_insn_intern_duparray assert_compile_once('[:"#{0}"] + [1,2,3]', result_inspect: '[:"0", 1, 2, 3]', insns: %i[intern duparray]) end |