Add two more small btests
This commit is contained in:
parent
14253e7d12
commit
d2115562b9
Notes:
git
2025-04-18 13:48:20 +00:00
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user