mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
add tests
This commit is contained in:
parent
7f081c1ac9
commit
c8b768f1ea
2 changed files with 17 additions and 0 deletions
16
testing/create_table.test
Executable file
16
testing/create_table.test
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env tclsh
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
|
||||
do_execsql_test_in_memory_any_error create_table_one_unique_set {
|
||||
CREATE TABLE t4(a, unique(b));
|
||||
}
|
||||
|
||||
do_execsql_test_on_specific_db {:memory:} create_table_same_uniques_and_primary_keys {
|
||||
CREATE TABLE t2(a,b, unique(a,b), primary key(a,b));
|
||||
} {}
|
||||
|
||||
do_execsql_test_on_specific_db {:memory:} create_table_unique_contained_in_primary_keys {
|
||||
CREATE TABLE t4(a,b, primary key(a,b), unique(a));
|
||||
} {}
|
Loading…
Add table
Add a link
Reference in a new issue