Files
turso/testing/concat.test
Jussi Saurio 7e65657ab0 Add 'make test-single'
e.g. `make test-single TEST=subquery.test`

Plus: chmod +x to all tcl tests in testing folder
2025-10-30 11:38:56 +02:00

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';
} {}