Files
turso/testing/insert.test
Kim Seon Woo c6402aa341 Add tcl
2024-08-18 21:00:36 +02:00

18 lines
400 B
Tcl
Executable File

#!/usr/bin/env tclsh
set testdir [file dirname $argv0]
source $testdir/tester.tcl
do_execsql_check_err_msg insert-1.1 {
INSERT INTO test1 VALUES(1,2,3);
} {Error: in prepare, no such table: test1}
do_execsql_with_cleanup_test insert-1.2 {
CREATE TABLE test1(one int, two int, three int);
INSERT INTO test1 VALUES(1, 2, 3);
SELECT * FROM test1;
} {1|2|3} {
DROP TABLE IF EXISTS test1;
}