mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
add tests for octet_length scalar function
This commit is contained in:
parent
d4bff2c93e
commit
e4d31cbe34
1 changed files with 26 additions and 2 deletions
|
@ -359,8 +359,32 @@ do_execsql_test length-empty-text {
|
|||
SELECT length('');
|
||||
} {0}
|
||||
|
||||
do_execsql_test length-date-binary-expr {
|
||||
select length(date('now')) = 10;
|
||||
do_execsql_test octet-length-text {
|
||||
SELECT length('limbo');
|
||||
} {5}
|
||||
|
||||
do_execsql_test octet-lenght-text-utf8-chars {
|
||||
SELECT octet_length('ąłóżźć');
|
||||
} {12}
|
||||
|
||||
do_execsql_test octet-length-integer {
|
||||
SELECT octet_length(12345);
|
||||
} {5}
|
||||
|
||||
do_execsql_test octet-length-float {
|
||||
SELECT octet_length(123.456);
|
||||
} {7}
|
||||
|
||||
do_execsql_test octet-length-null {
|
||||
SELECT octet_length(NULL);
|
||||
} {}
|
||||
|
||||
do_execsql_test octet-length-empty-text {
|
||||
SELECT octet_length('');
|
||||
} {0}
|
||||
|
||||
do_execsql_test octet-length-date-binary-expr {
|
||||
select octet_length(date('now')) = 10;
|
||||
} {1}
|
||||
|
||||
do_execsql_test min-number {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue