23 lines
328 B
Plaintext
23 lines
328 B
Plaintext
|
|
# transform
|
|
list = (1, 2, 3);
|
|
test = transform(list, 'input + 1');
|
|
assert_equal((2, 3, 4), test);
|
|
|
|
# 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
|