mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Various minor fixes and updates to make more test cases pass. (CVS 1370)
FossilOrigin-Name: dbe8385ecf1df8bf0b1baf5e811ec5a1de5c4c42
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
# This file implements regression tests for SQLite library. The
|
||||
# focus of this file is testing expressions.
|
||||
#
|
||||
# $Id: expr.test,v 1.31 2004/03/03 01:51:25 drh Exp $
|
||||
# $Id: expr.test,v 1.32 2004/05/13 11:34:17 danielk1977 Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@ -29,7 +29,8 @@ proc test_expr {name settings expr result} {
|
||||
test_expr expr-1.1 {i1=10, i2=20} {i1+i2} 30
|
||||
test_expr expr-1.2 {i1=10, i2=20} {i1-i2} -10
|
||||
test_expr expr-1.3 {i1=10, i2=20} {i1*i2} 200
|
||||
test_expr expr-1.4 {i1=10, i2=20} {i1/i2} 0.5
|
||||
# update for sqlite v3: Change 0.5 to 0 in expr1.4 due to manifest types.
|
||||
test_expr expr-1.4 {i1=10, i2=20} {i1/i2} 0
|
||||
test_expr expr-1.5 {i1=10, i2=20} {i2/i1} 2
|
||||
test_expr expr-1.6 {i1=10, i2=20} {i2<i1} 0
|
||||
test_expr expr-1.7 {i1=10, i2=20} {i2<=i1} 0
|
||||
|
Reference in New Issue
Block a user