diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_zjit.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/ruby/test_zjit.rb b/test/ruby/test_zjit.rb index 694a5032da..30ec7df04d 100644 --- a/test/ruby/test_zjit.rb +++ b/test/ruby/test_zjit.rb @@ -93,6 +93,24 @@ class TestZJIT < Test::Unit::TestCase }, call_threshold: 2 end + + + # FIXME: not yet working, missing FixnumLt? + #def test_if_else + # assert_compiles '[0, 1]', %q{ + # def test(n) + # if n < 5 + # 0 + # else + # 1 + # end + # end + # [test(3), test(7)] + # }, call_threshold: 2 + #end + + + private # Assert that every method call in `test_script` can be compiled by ZJIT |