pocketlang/tests/lang/builtin_fn.pk
2022-05-28 01:13:08 +05:30

13 lines
317 B
Plaintext

## TODO: add more test of built in functions.
assert("append" in dir([]))
assert("_repr" in dir(null))
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')