diff options
author | drh <drh@noemail.net> | 2005-10-29 15:48:30 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2005-10-29 15:48:30 +0000 |
commit | b12761293300b49d676017f5576fdd6866f9eb8e (patch) | |
tree | e8db131974fcb159eb4682461e5354c59d07c1dc /test/expr.test | |
parent | eef8b55832eb53453bc81f7054e64aec004362df (diff) | |
download | sqlite-b12761293300b49d676017f5576fdd6866f9eb8e.tar.gz sqlite-b12761293300b49d676017f5576fdd6866f9eb8e.zip |
Fix the shift operators so that they work with 64-bit quantities. (CVS 2752)
FossilOrigin-Name: 0d3357b5f65887f7db03db2ae021f28f480f90e4
Diffstat (limited to 'test/expr.test')
-rw-r--r-- | test/expr.test | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/expr.test b/test/expr.test index 794de1e7b..b66d080fc 100644 --- a/test/expr.test +++ b/test/expr.test @@ -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.45 2005/08/19 03:03:52 drh Exp $ +# $Id: expr.test,v 1.46 2005/10/29 15:48:32 drh Exp $ set testdir [file dirname $argv0] source $testdir/tester.tcl @@ -132,6 +132,11 @@ test_expr expr-1.99 {i1=32, i2=NULL} {coalesce(i1&i2,99)} 99 test_expr expr-1.100 {i1=1, i2=''} {i1=i2} 0 test_expr expr-1.101 {i1=0, i2=''} {i1=i2} 0 +# Check for proper handling of 64-bit integer values. +# +test_expr expr-1.102 {i1=40, i2=1} {i2<<i1} 1099511627776 + + test_expr expr-2.1 {r1=1.23, r2=2.34} {r1+r2} 3.57 test_expr expr-2.2 {r1=1.23, r2=2.34} {r1-r2} -1.11 test_expr expr-2.3 {r1=1.23, r2=2.34} {r1*r2} 2.8782 @@ -629,4 +634,6 @@ do_test expr-11.2 { execsql {SELECT typeof(9223372036854775808)} } {real} + + finish_test |