mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-17 08:34:19 +01:00
e.g. `make test-single TEST=subquery.test` Plus: chmod +x to all tcl tests in testing folder
26 lines
494 B
Tcl
Executable File
26 lines
494 B
Tcl
Executable File
#!/usr/bin/env tclsh
|
|
|
|
set testdir [file dirname $argv0]
|
|
source $testdir/tester.tcl
|
|
|
|
do_execsql_test concat {
|
|
SELECT 'Hello' || ' ' || 'World';
|
|
} {"Hello World"}
|
|
|
|
do_execsql_test concat-2 {
|
|
SELECT 'Hello' || NULL;
|
|
} {}
|
|
|
|
do_execsql_test concat-3 {
|
|
SELECT 'Hello' || NULL;
|
|
} {}
|
|
|
|
do_execsql_test concat-4 {
|
|
SELECT 'A good ' || name FROM products WHERE name = 'hat';
|
|
} {"A good hat"}
|
|
|
|
|
|
do_execsql_test concat-4 {
|
|
SELECT 'A good ' || name FROM products WHERE name = 'watch';
|
|
} {}
|