21 lines
207 B
ChaiScript
21 lines
207 B
ChaiScript
def bob(x, y, z) {
|
|
x + y + z
|
|
}
|
|
|
|
def bob(x, y) {
|
|
x - y
|
|
}
|
|
|
|
def bob(x) {
|
|
-x
|
|
}
|
|
|
|
def bob() {
|
|
10
|
|
}
|
|
|
|
assert_equal(10, bob())
|
|
assert_equal(-5, bob(5))
|
|
assert_equal(-1, bob(5,6))
|
|
assert_equal(18, bob(5,6,7))
|