dust/tests/collections.ds

23 lines
328 B
Plaintext
Raw Normal View History

2023-08-22 18:26:49 +00:00
2023-08-23 21:28:19 +00:00
# transform
list = (1, 2, 3);
2023-08-22 18:26:49 +00:00
test = transform(list, 'input + 1');
assert_equal((2, 3, 4), test);
2023-08-23 21:28:19 +00:00
# string
test = string(42);
assert_equal("42", test);
test = string(42.42);
assert_equal("42.42", test);
test = string(false);
assert_equal("false", test);
# count
test = count("123");
assert_equal(3, test);
# create_table