[前][次][番号順一覧][スレッド一覧]

ruby-changes:53141

From: k0kubun <ko1@a...>
Date: Wed, 24 Oct 2018 23:24:41 +0900 (JST)
Subject: [ruby-changes:53141] k0kubun:r65355 (trunk): test_jit.rb: test newhashfromarray

k0kubun	2018-10-24 23:24:34 +0900 (Wed, 24 Oct 2018)

  New Revision: 65355

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65355

  Log:
    test_jit.rb: test newhashfromarray

  Modified files:
    trunk/test/ruby/test_jit.rb
Index: test/ruby/test_jit.rb
===================================================================
--- test/ruby/test_jit.rb	(revision 65354)
+++ test/ruby/test_jit.rb	(revision 65355)
@@ -239,6 +239,10 @@ class TestJIT < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_jit.rb#L239
     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]