Add two more small btests

This commit is contained in:
Maxime Chevalier-Boisvert 2025-03-07 10:59:46 -05:00 committed by Takashi Kokubun
parent 14253e7d12
commit d2115562b9
Notes: git 2025-04-18 13:48:20 +00:00

View File

@ -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)
}