pocketlang/tests/lang/builtin_fn.pk

13 lines
317 B
Plaintext
Raw Normal View History

## TODO: add more test of built in functions.
2022-05-28 03:07:58 +08:00
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')