3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing:
6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give.
10 #***********************************************************************
11 # This file implements regression tests for SQLite library.
13 # This file implements tests to verify that ticket [3fe897352e8d8] has been
17 set testdir [file dirname $argv0]
18 source $testdir/tester.tcl
20 # The following tests use hex_to_utf16be() and hex_to_utf16le() which
21 # which are only available if SQLite is built with UTF16 support.
27 do_test tkt-3fe89-1.1 {
33 INSERT INTO t1 VALUES(hex_to_utf16be('D800'));
34 SELECT hex(x) FROM t1;
37 do_test tkt-3fe89-1.2 {
40 INSERT INTO t1 VALUES(hex_to_utf16le('00D8'));
41 SELECT hex(x) FROM t1;
44 do_test tkt-3fe89-1.3 {
47 INSERT INTO t1 VALUES(hex_to_utf16be('DFFF'));
48 SELECT hex(x) FROM t1;
51 do_test tkt-3fe89-1.4 {
54 INSERT INTO t1 VALUES(hex_to_utf16le('FFDF'));
55 SELECT hex(x) FROM t1;