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

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

Issue 1610963002: Import SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « third_party/sqlite/src/test/softheap1.test ('k') | third_party/sqlite/src/test/sort2.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 # 2001 September 15. 1 # 2001 September 15.
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 testing the sorter (code in vdbesort.c). 13 # focus of this file is testing the sorter (code in vdbesort.c).
14 # 14 #
15 15
16 set testdir [file dirname $argv0] 16 set testdir [file dirname $argv0]
17 source $testdir/tester.tcl 17 source $testdir/tester.tcl
18 set testprefix sort 18 set testprefix sort
19 db close
20 sqlite3_shutdown
21 sqlite3_config_pmasz 10
22 sqlite3_initialize
23 sqlite3 db test.db
19 24
20 # Create a bunch of data to sort against 25 # Create a bunch of data to sort against
21 # 26 #
22 do_test sort-1.0 { 27 do_test sort-1.0 {
23 execsql { 28 execsql {
24 CREATE TABLE t1( 29 CREATE TABLE t1(
25 n int, 30 n int,
26 v varchar(10), 31 v varchar(10),
27 log int, 32 log int,
28 roman varchar(10), 33 roman varchar(10),
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 INSERT INTO t1 VALUES(4, 5, 6); 635 INSERT INTO t1 VALUES(4, 5, 6);
631 CREATE UNIQUE INDEX i1 ON t1(b, a, c); 636 CREATE UNIQUE INDEX i1 ON t1(b, a, c);
632 } {1 {UNIQUE constraint failed: t1.b, t1.a, t1.c}} 637 } {1 {UNIQUE constraint failed: t1.b, t1.a, t1.c}}
633 638
634 reset_db 639 reset_db
635 do_execsql_test 17.1 { 640 do_execsql_test 17.1 {
636 SELECT * FROM sqlite_master ORDER BY sql; 641 SELECT * FROM sqlite_master ORDER BY sql;
637 } {} 642 } {}
638 643
639 finish_test 644 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/softheap1.test ('k') | third_party/sqlite/src/test/sort2.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698