summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMaxime Chevalier-Boisvert <[email protected]>2025-03-10 16:27:10 -0400
committerTakashi Kokubun <[email protected]>2025-04-18 21:52:59 +0900
commit708940e8c2335d11dd1891c0e9ed7b5d437b56bb (patch)
tree9fbd19185c1a8b8ec0323a601ba5dfd0d5ab9f38 /test
parenta412f9322cb3924f58bea88fd112816b9aeba815 (diff)
Add commented out if-else test to test_zjit.rb
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13131
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_zjit.rb18
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