Use 1<<$x instead of pow(2,$x) in the test suite code. (CVS 4715)
FossilOrigin-Name: 3a289b6d28bcf399845586b15f100d7c3a78b550
This commit is contained in:
+2
-2
@@ -11,7 +11,7 @@
|
||||
# This file implements regression tests for SQLite library. The
|
||||
# focus of this file is testing the UPDATE statement.
|
||||
#
|
||||
# $Id: update.test,v 1.17 2005/01/21 03:12:16 danielk1977 Exp $
|
||||
# $Id: update.test,v 1.18 2008/01/16 18:20:42 danielk1977 Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@@ -36,7 +36,7 @@ do_test update-2.1 {
|
||||
do_test update-3.1 {
|
||||
execsql {CREATE TABLE test1(f1 int,f2 int)}
|
||||
for {set i 1} {$i<=10} {incr i} {
|
||||
set sql "INSERT INTO test1 VALUES($i,[expr {int(pow(2,$i))}])"
|
||||
set sql "INSERT INTO test1 VALUES($i,[expr {1<<$i}])"
|
||||
execsql $sql
|
||||
}
|
||||
execsql {SELECT * FROM test1 ORDER BY f1}
|
||||
|
||||
Reference in New Issue
Block a user