diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-24 14:24:34 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-24 14:24:34 +0000 |
commit | 593b58534fcedab2392f3c97c7e1faf5ae972875 (patch) | |
tree | ac61c80e9f879d36c49f2b46d8c5cf25bcbd4df1 /test/ruby | |
parent | f84c31842094ea1ca9d8b11e037e5298cbcae103 (diff) | |
download | ruby-593b58534fcedab2392f3c97c7e1faf5ae972875.tar.gz |
test_jit.rb: test newhashfromarray
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-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 44caaf49bd..888290faa9 100644 --- a/test/ruby/test_jit.rb +++ b/test/ruby/test_jit.rb @@ -239,6 +239,10 @@ class TestJIT < Test::Unit::TestCase assert_compile_once('a = 1; { a: a }', result_inspect: '{:a=>1}', insns: %i[newhash]) end + def test_compile_insn_newhashfromarray + assert_compile_once('{ a: 1 }', result_inspect: '{:a=>1}', insns: %i[newhashfromarray]) + end + def test_compile_insn_newrange assert_compile_once('a = 1; 0..a', result_inspect: '0..1', insns: %i[newrange]) end |