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

Improved test coverage of func.c and hash.c. (CVS 1772)

FossilOrigin-Name: 0c999f28137bd82ba24dd263bab30d22329eed73
This commit is contained in:
drh
2004-06-30 03:08:24 +00:00
parent 5b809e3198
commit cc19587998
5 changed files with 30 additions and 18 deletions

View File

@ -13,7 +13,7 @@
# The focus of this file is testing of the proper handling of conversions
# to the native text representation.
#
# $Id: enc3.test,v 1.1 2004/06/22 17:59:57 drh Exp $
# $Id: enc3.test,v 1.2 2004/06/30 03:08:25 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -36,6 +36,18 @@ do_test enc3-1.3 {
SELECT quote(x) || ' ' || quote(y) FROM t1
}
} {{'abc''123' 5}}
do_test enc3-1.4 {
execsql {
DELETE FROM t1;
INSERT INTO t1 VALUES(x'616263646566',NULL);
SELECT * FROM t1
}
} {abcdef {}}
do_test enc3-1.5 {
execsql {
SELECT quote(x) || ' ' || quote(y) FROM t1
}
} {{X'616263646566' NULL}}
finish_test

View File

@ -12,7 +12,7 @@
# it tests that the different storage classes (integer, real, text etc.)
# all work correctly.
#
# $Id: types.test,v 1.8 2004/06/30 02:35:51 danielk1977 Exp $
# $Id: types.test,v 1.9 2004/06/30 03:08:25 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -60,6 +60,7 @@ set values {
{ '5' integer integer text text }
{ 'abc' text text text text }
{ NULL null null null null }
{ X'00' blob blob blob blob }
}
# This code tests that the storage classes specified above (in the $values