1
0
dust/tests/table.ds
2023-08-22 22:20:42 -04:00

30 lines
429 B
Plaintext

table = create_table (
("text", "number", "bool"),
(
("a", 1, true),
("b", 2, true),
("a", 3, true)
)
);
test_table = create_table (
("text", "bool"),
(
("a", true),
("b", true),
("a", true)
)
);
assert_equal(table:select("text", "bool"), test_table);
test_table = create_table (
("text", "number", "bool"),
(
("a", 1, true),
("a", 3, true)
)
);
assert_equal(table:where('text == "a"'), test_table);