1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Internationalize the TRIM functions. Ticket #2323. (CVS 3883)

FossilOrigin-Name: ff1f4e744728c8f55afae265246797b30fe98fb0
This commit is contained in:
drh
2007-04-27 21:59:52 +00:00
parent ac7b2dd518
commit d1e3a616ca
4 changed files with 71 additions and 27 deletions

View File

@ -11,7 +11,7 @@
# This file implements regression tests for SQLite library. The
# focus of this file is testing built-in functions.
#
# $Id: func.test,v 1.61 2007/04/27 01:18:03 drh Exp $
# $Id: func.test,v 1.62 2007/04/27 21:59:53 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -821,6 +821,16 @@ do_test func-22.12 {
do_test func-22.13 {
execsql {SELECT trim(' hi ','');}
} {{ hi }}
do_test func-22.14 {
execsql {SELECT hex(trim(x'c280e1bfbff7bfbfbf6869',x'6162e1bfbfc280'))}
} {F7BFBFBF6869}
do_test func-22.15 {
execsql {SELECT hex(trim(x'6869c280e1bfbff7bfbfbf61',
x'6162e1bfbfc280f7bfbfbf'))}
} {6869}
do_test func-22.16 {
execsql {SELECT hex(trim(x'ceb1ceb2ceb3',x'ceb1'));}
} {CEB2CEB3}
do_test func-22.20 {
execsql {SELECT typeof(trim(NULL));}
} {null}