25 lines
426 B
Plaintext
25 lines
426 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]
|
|
]
|
|
|
|
select = select <text bool> from table
|
|
|
|
(assert_equal select, test_table)
|
|
|
|
test_table = create_table <text number bool> [
|
|
["a", 1, true]
|
|
["a", 3, true]
|
|
]
|
|
|
|
select_where = select * from table where text == "a"
|
|
|
|
assert_equal(select_where, test_table);
|