mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
tests: length function with multibyte characters
Depending on encoding, some characters have more than one byte. Add failing test to verify if current implementation of scalar function `length` takes that into account.
This commit is contained in:
parent
f9b300a608
commit
e68a86532a
1 changed files with 4 additions and 0 deletions
|
@ -343,6 +343,10 @@ do_execsql_test length-text {
|
|||
SELECT length('limbo');
|
||||
} {5}
|
||||
|
||||
do_execsql_test lenght-text-utf8-chars {
|
||||
SELECT length('ąłóżźć');
|
||||
} {6}
|
||||
|
||||
do_execsql_test length-integer {
|
||||
SELECT length(12345);
|
||||
} {5}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue