diff options
author | Takashi Kokubun <[email protected]> | 2025-03-07 12:55:47 -0800 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2025-04-18 21:52:59 +0900 |
commit | 33a052486baa54ab858bd0a06033e90a3c66d2ac () | |
tree | d2f0602755e3e1df114be2c882dc4071128d362d /bootstraptest | |
parent | d2115562b92e70bea71cfaca175f59587c6a77da (diff) |
Assert everything is compiled in test_zjit (https://.com/Shopify/zjit/pull/40)
* Assert everything is compiled in test_zjit * Update a comment on rb_zjit_assert_compiles Co-authored-by: Maxime Chevalier-Boisvert <[email protected]> * Add a comment about assert_compiles * Actually use pipe_fd --------- Co-authored-by: Maxime Chevalier-Boisvert <[email protected]>
Notes: Merged: https://.com/ruby/ruby/pull/13131
-rw-r--r-- | bootstraptest/test_zjit.rb | 33 |
1 files changed, 0 insertions, 33 deletions
@@ -1,33 +0,0 @@ -# Tests of Ruby methods that ZJIT can currently compile. -# make btest BTESTS=bootstraptest/test_zjit.rb RUN_OPTS="--zjit" - -assert_equal 'nil', %q{ - def test = nil - test; test.inspect -} - -assert_equal '1', %q{ - def test = 1 - test; test -} - -assert_equal '3', %q{ - def test = 1 + 2 - test; test -} - -assert_equal '[6, 3]', %q{ - def test(a, b) = a + b - [test(2, 4), test(1, 2)] -} - -# Test argument ordering -assert_equal '2', %q{ - def test(a, b) = a - b - test(6, 4) -} - -assert_equal '6', %q{ - def test(a, b, c) = a + b + c - test(1, 2, 3) -} |