1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Fixes and test improvements resulting from code coverage testing. (CVS 716)

FossilOrigin-Name: 66a0f6a8e25e3eeed78eba4b63b097f921c79d99
This commit is contained in:
drh
2002-08-15 01:26:09 +00:00
parent b27b83a941
commit 3d037a91a5
6 changed files with 83 additions and 46 deletions

View File

@ -13,7 +13,7 @@
# This file implements tests for the special processing associated
# with INTEGER PRIMARY KEY columns.
#
# $Id: intpkey.test,v 1.10 2002/06/19 20:32:45 drh Exp $
# $Id: intpkey.test,v 1.11 2002/08/15 01:26:11 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -462,4 +462,18 @@ do_test intpkey-10.3 {
}
} {1 1 2 2 2 3 3 2 1 4 3 2}
# This tests checks to see if a floating point number can be used
# to reference an integer primary key.
#
do_test intpkey-11.1 {
execsql {
SELECT b FROM t1 WHERE a=2.0+3.0;
}
} {hello}
do_test intpkey-11.1 {
execsql {
SELECT b FROM t1 WHERE a=2.0+3.5;
}
} {}
finish_test