From d2115562b92e70bea71cfaca175f59587c6a77da Mon Sep 17 00:00:00 2001 From: Maxime Chevalier-Boisvert Date: Fri, 7 Mar 2025 10:59:46 -0500 Subject: [PATCH] Add two more small btests --- bootstraptest/test_zjit.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bootstraptest/test_zjit.rb b/bootstraptest/test_zjit.rb index a8c6c85c0f..45f4de8f44 100644 --- a/bootstraptest/test_zjit.rb +++ b/bootstraptest/test_zjit.rb @@ -20,3 +20,14 @@ 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) +}