mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-20 07:25:14 +01:00
add tests
This commit is contained in:
@@ -33,3 +33,4 @@ source $testdir/default_value.test
|
||||
source $testdir/boolean.test
|
||||
source $testdir/literal.test
|
||||
source $testdir/null.test
|
||||
source $testdir/create_table.test
|
||||
|
||||
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));
|
||||
} {}
|
||||
Reference in New Issue
Block a user