1
0
dust/examples/table.ds
2023-10-21 13:04:17 -04:00

27 lines
434 B
Plaintext

my_table = table <text number bool> [
["a", 1, true]
["b", 2, true]
["a", 3, true]
]
test_table = table <text bool> [
["a", true]
["b", true]
["a", true]
]
test_select = select <text bool> from my_table
(assert_equal test_select, test_table)
test_table = table <text number bool> [
["a", 1, true]
["a", 3, true]
]
test_select_where = select <> from my_table {
text == "a"
}
(assert_equal test_select_where, test_table)