This commit is contained in:
Kim Seon Woo
2024-08-17 21:56:35 +09:00
parent 78817d3804
commit c6402aa341
3 changed files with 61 additions and 6 deletions

17
testing/insert.test Executable file
View File

@@ -0,0 +1,17 @@
#!/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;
}