pocketlang/tests/lang/builtin_fn.pk
Thakee Nathees f5e2f15d23 negative index, range slice and more
... string concat with .. operator
    exponent operator with ** operator
2022-05-08 23:19:33 +05:30

10 lines
259 B
Plaintext

## TODO: add more test of built in functions.
assert(list_join([1, 2, 3]) == "123")
assert(list_join(["hello", " world"]) == "hello world")
assert(list_join([[], []]) == "[][]")
## If we got here, that means all test were passed.
print('All TESTS PASSED')