mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +08:00
10 lines
178 B
ChaiScript
10 lines
178 B
ChaiScript
def bob(x, y) : x > 10 { x - y }
|
|
|
|
def bob(x, y) : x > 5 { x - y + 10 }
|
|
|
|
def bob(x, y) { x + y }
|
|
|
|
assert_equal(7, bob(3,4))
|
|
assert_equal(9, bob(6,7))
|
|
assert_equal(-1, bob(11,12))
|