mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
Add testing
This commit is contained in:
parent
f39dc534a6
commit
af09f0b7f4
3 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue