mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 08:55:40 +01:00
Add testing
This commit is contained in:
@@ -144,6 +144,7 @@ impl Func {
|
||||
"coalesce" => Ok(Func::Scalar(ScalarFunc::Coalesce)),
|
||||
"concat" => Ok(Func::Scalar(ScalarFunc::Concat)),
|
||||
"concat_ws" => Ok(Func::Scalar(ScalarFunc::ConcatWs)),
|
||||
"glob" => Ok(Func::Scalar(ScalarFunc::Glob)),
|
||||
"ifnull" => Ok(Func::Scalar(ScalarFunc::IfNull)),
|
||||
"like" => Ok(Func::Scalar(ScalarFunc::Like)),
|
||||
"abs" => Ok(Func::Scalar(ScalarFunc::Abs)),
|
||||
|
||||
@@ -5,6 +5,7 @@ set testdir [file dirname $argv0]
|
||||
source $testdir/cmdlineshell.test
|
||||
source $testdir/agg-functions.test
|
||||
source $testdir/coalesce.test
|
||||
source $testdir/glob.test
|
||||
source $testdir/join.test
|
||||
source $testdir/insert.test
|
||||
source $testdir/join.test
|
||||
|
||||
@@ -22,6 +22,10 @@ do_execsql_test where-glob {
|
||||
} {4|sweater|25.0
|
||||
5|sweatshirt|74.0}
|
||||
|
||||
do_execsql_test where-glob-question-mark {
|
||||
select * from products where name glob 'sweat?r';
|
||||
} {4|sweater|25.0}
|
||||
|
||||
do_execsql_test where-glob-fn {
|
||||
select * from products where glob('sweat*', name)=1
|
||||
} {4|sweater|25.0
|
||||
|
||||
Reference in New Issue
Block a user