Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(386)

Side by Side Diff: third_party/sqlite/src/test/rowhash.test

Issue 6990047: Import SQLite 3.7.6.3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/sqlite/src/test/rollback.test ('k') | third_party/sqlite/src/test/rtree.test » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # 2009 April 17 1 # 2009 April 17
2 # 2 #
3 # The author disclaims copyright to this source code. In place of 3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing: 4 # a legal notice, here is a blessing:
5 # 5 #
6 # May you do good and not evil. 6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others. 7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give. 8 # May you share freely, never taking more than you give.
9 # 9 #
10 #*********************************************************************** 10 #***********************************************************************
11 # 11 #
12 # This file implements regression tests for SQLite library. The 12 # This file implements regression tests for SQLite library. The
13 # focus of this file is the code in rowhash.c. 13 # focus of this file is the code in rowhash.c.
14 # 14 #
15 # $Id: rowhash.test,v 1.5 2009/05/02 12:02:02 drh Exp $ 15 # NB: The rowhash.c module is no longer part of the source tree. But
16 # we might as well keep this test.
17 #
16 18
17 set testdir [file dirname $argv0] 19 set testdir [file dirname $argv0]
18 source $testdir/tester.tcl 20 source $testdir/tester.tcl
19 21
20 do_test rowhash-1.1 { 22 do_test rowhash-1.1 {
21 execsql { 23 execsql {
22 CREATE TABLE t1(id INTEGER PRIMARY KEY, a, b, c); 24 CREATE TABLE t1(id INTEGER PRIMARY KEY, a, b, c);
23 CREATE INDEX i1 ON t1(a); 25 CREATE INDEX i1 ON t1(a);
24 CREATE INDEX i2 ON t1(b); 26 CREATE INDEX i2 ON t1(b);
25 CREATE INDEX i3 ON t1(c); 27 CREATE INDEX i3 ON t1(c);
(...skipping 12 matching lines...) Expand all
38 SELECT id FROM t1 WHERE a = 'a' OR b = 'b' OR c = 'c'; 40 SELECT id FROM t1 WHERE a = 'a' OR b = 'b' OR c = 'c';
39 }] 41 }]
40 } [lsort -integer -unique $lKey] 42 } [lsort -integer -unique $lKey]
41 } 43 }
42 44
43 do_keyset_test rowhash-2.1 {1 2 3} 45 do_keyset_test rowhash-2.1 {1 2 3}
44 do_keyset_test rowhash-2.2 {0 1 2 3} 46 do_keyset_test rowhash-2.2 {0 1 2 3}
45 do_keyset_test rowhash-2.3 {62 125 188} 47 do_keyset_test rowhash-2.3 {62 125 188}
46 if {[working_64bit_int]} { 48 if {[working_64bit_int]} {
47 expr srand(1) 49 expr srand(1)
50 unset -nocomplain i L
48 for {set i 4} {$i < 10} {incr i} { 51 for {set i 4} {$i < 10} {incr i} {
49 for {set j 0} {$j < 5000} {incr j} { 52 for {set j 0} {$j < 5000} {incr j} {
50 lappend L [expr int(rand()*1000000000)] 53 lappend L [expr int(rand()*1000000000)]
51 } 54 }
52 do_keyset_test rowhash-2.$i $L 55 do_keyset_test rowhash-2.$i $L
53 } 56 }
54 } 57 }
55 58
56 finish_test 59 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/rollback.test ('k') | third_party/sqlite/src/test/rtree.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698