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

Side by Side Diff: third_party/sqlite/src/test/boundary4.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/boundary4.tcl ('k') | third_party/sqlite/src/test/cache.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 # 2008 December 11 1 # 2008 December 11
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 # This file implements regression tests for SQLite library. 11 # This file implements regression tests for SQLite library.
12 # 12 #
13 # This file is automatically generated from a separate TCL script. 13 # This file is automatically generated from a separate TCL script.
14 # This file seeks to exercise integer boundary values. 14 # This file seeks to exercise integer boundary values.
15 # 15 #
16 # $Id: boundary4.test,v 1.2 2009/01/02 15:45:48 shane Exp $ 16 # $Id: boundary4.test,v 1.2 2009/01/02 15:45:48 shane Exp $
17 17
18 set testdir [file dirname $argv0] 18 set testdir [file dirname $argv0]
19 source $testdir/tester.tcl 19 source $testdir/tester.tcl
20 20
21 # Many of the boundary tests depend on a working 64-bit implementation. 21 # Many of the boundary tests depend on a working 64-bit implementation.
22 if {![working_64bit_int]} { finish_test; return } 22 if {![working_64bit_int]} { finish_test; return }
23 ifcapable !altertable { finish_test; return }
23 24
24 do_test boundary4-1.1 { 25 do_test boundary4-1.1 {
25 db eval { 26 db eval {
26 CREATE TABLE t1(a,x); 27 CREATE TABLE t1(a,x);
27 INSERT INTO t1(oid,a,x) VALUES(549755813887,1,'0000007fffffffff'); 28 INSERT INTO t1(oid,a,x) VALUES(549755813887,1,'0000007fffffffff');
28 INSERT INTO t1(oid,a,x) VALUES(-8388608,2,'ffffffffff800000'); 29 INSERT INTO t1(oid,a,x) VALUES(-8388608,2,'ffffffffff800000');
29 INSERT INTO t1(oid,a,x) VALUES(0,3,'0000000000000000'); 30 INSERT INTO t1(oid,a,x) VALUES(0,3,'0000000000000000');
30 INSERT INTO t1(oid,a,x) VALUES(-129,4,'ffffffffffffff7f'); 31 INSERT INTO t1(oid,a,x) VALUES(-129,4,'ffffffffffffff7f');
31 INSERT INTO t1(oid,a,x) VALUES(8388608,5,'0000000000800000'); 32 INSERT INTO t1(oid,a,x) VALUES(8388608,5,'0000000000800000');
32 INSERT INTO t1(oid,a,x) VALUES(65535,6,'000000000000ffff'); 33 INSERT INTO t1(oid,a,x) VALUES(65535,6,'000000000000ffff');
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 db eval { 334 db eval {
334 SELECT a, rowid, z FROM t1 ORDER BY +z DESC 335 SELECT a, rowid, z FROM t1 ORDER BY +z DESC
335 } 336 }
336 } {-1 17 ffffffffffffffff -128 45 ffffffffffffff80 -129 4 ffffffffffffff7f -3276 8 42 ffffffffffff8000 -32769 24 ffffffffffff7fff -8388608 2 ffffffffff800000 -83 88609 21 ffffffffff7fffff -2147483648 31 ffffffff80000000 -2147483649 39 fffffff f7fffffff -549755813888 12 ffffff8000000000 -549755813889 28 ffffff7fffffffff -1 40737488355328 13 ffff800000000000 -140737488355329 44 ffff7fffffffffff -3602879 7018963968 43 ff80000000000000 -36028797018963969 30 ff7fffffffffffff -922337203 6854775808 26 8000000000000000 9223372036854775807 18 7fffffffffffffff 720575940 37927936 16 0100000000000000 72057594037927935 27 00ffffffffffffff 3602879701896 3968 23 0080000000000000 36028797018963967 40 007fffffffffffff 281474976710656 3 2 0001000000000000 281474976710655 19 0000ffffffffffff 140737488355328 34 000080 0000000000 140737488355327 38 00007fffffffffff 1099511627776 8 0000010000000000 1099511627775 20 000000ffffffffff 549755813888 35 0000008000000000 549755813887 1 0000007fffffffff 4294967296 11 0000000100000000 4294967295 37 00000000ffffffff 2147483648 36 0000000080000000 2147483647 46 000000007fffffff 16777216 15 00000 00001000000 16777215 9 0000000000ffffff 8388608 5 0000000000800000 8388607 7 000 00000007fffff 65536 33 0000000000010000 65535 6 000000000000ffff 32768 22 000000 0000008000 32767 10 0000000000007fff 256 14 0000000000000100 255 29 000000000000 00ff 128 41 0000000000000080 127 25 000000000000007f 0 3 0000000000000000} 337 } {-1 17 ffffffffffffffff -128 45 ffffffffffffff80 -129 4 ffffffffffffff7f -3276 8 42 ffffffffffff8000 -32769 24 ffffffffffff7fff -8388608 2 ffffffffff800000 -83 88609 21 ffffffffff7fffff -2147483648 31 ffffffff80000000 -2147483649 39 fffffff f7fffffff -549755813888 12 ffffff8000000000 -549755813889 28 ffffff7fffffffff -1 40737488355328 13 ffff800000000000 -140737488355329 44 ffff7fffffffffff -3602879 7018963968 43 ff80000000000000 -36028797018963969 30 ff7fffffffffffff -922337203 6854775808 26 8000000000000000 9223372036854775807 18 7fffffffffffffff 720575940 37927936 16 0100000000000000 72057594037927935 27 00ffffffffffffff 3602879701896 3968 23 0080000000000000 36028797018963967 40 007fffffffffffff 281474976710656 3 2 0001000000000000 281474976710655 19 0000ffffffffffff 140737488355328 34 000080 0000000000 140737488355327 38 00007fffffffffff 1099511627776 8 0000010000000000 1099511627775 20 000000ffffffffff 549755813888 35 0000008000000000 549755813887 1 0000007fffffffff 4294967296 11 0000000100000000 4294967295 37 00000000ffffffff 2147483648 36 0000000080000000 2147483647 46 000000007fffffff 16777216 15 00000 00001000000 16777215 9 0000000000ffffff 8388608 5 0000000000800000 8388607 7 000 00000007fffff 65536 33 0000000000010000 65535 6 000000000000ffff 32768 22 000000 0000008000 32767 10 0000000000007fff 256 14 0000000000000100 255 29 000000000000 00ff 128 41 0000000000000080 127 25 000000000000007f 0 3 0000000000000000}
337 do_test boundary4-4.14 { 338 do_test boundary4-4.14 {
338 db eval { 339 db eval {
339 SELECT a, rowid, z FROM t1 ORDER BY z DESC 340 SELECT a, rowid, z FROM t1 ORDER BY z DESC
340 } 341 }
341 } {-1 17 ffffffffffffffff -128 45 ffffffffffffff80 -129 4 ffffffffffffff7f -3276 8 42 ffffffffffff8000 -32769 24 ffffffffffff7fff -8388608 2 ffffffffff800000 -83 88609 21 ffffffffff7fffff -2147483648 31 ffffffff80000000 -2147483649 39 fffffff f7fffffff -549755813888 12 ffffff8000000000 -549755813889 28 ffffff7fffffffff -1 40737488355328 13 ffff800000000000 -140737488355329 44 ffff7fffffffffff -3602879 7018963968 43 ff80000000000000 -36028797018963969 30 ff7fffffffffffff -922337203 6854775808 26 8000000000000000 9223372036854775807 18 7fffffffffffffff 720575940 37927936 16 0100000000000000 72057594037927935 27 00ffffffffffffff 3602879701896 3968 23 0080000000000000 36028797018963967 40 007fffffffffffff 281474976710656 3 2 0001000000000000 281474976710655 19 0000ffffffffffff 140737488355328 34 000080 0000000000 140737488355327 38 00007fffffffffff 1099511627776 8 0000010000000000 1099511627775 20 000000ffffffffff 549755813888 35 0000008000000000 549755813887 1 0000007fffffffff 4294967296 11 0000000100000000 4294967295 37 00000000ffffffff 2147483648 36 0000000080000000 2147483647 46 000000007fffffff 16777216 15 00000 00001000000 16777215 9 0000000000ffffff 8388608 5 0000000000800000 8388607 7 000 00000007fffff 65536 33 0000000000010000 65535 6 000000000000ffff 32768 22 000000 0000008000 32767 10 0000000000007fff 256 14 0000000000000100 255 29 000000000000 00ff 128 41 0000000000000080 127 25 000000000000007f 0 3 0000000000000000} 342 } {-1 17 ffffffffffffffff -128 45 ffffffffffffff80 -129 4 ffffffffffffff7f -3276 8 42 ffffffffffff8000 -32769 24 ffffffffffff7fff -8388608 2 ffffffffff800000 -83 88609 21 ffffffffff7fffff -2147483648 31 ffffffff80000000 -2147483649 39 fffffff f7fffffff -549755813888 12 ffffff8000000000 -549755813889 28 ffffff7fffffffff -1 40737488355328 13 ffff800000000000 -140737488355329 44 ffff7fffffffffff -3602879 7018963968 43 ff80000000000000 -36028797018963969 30 ff7fffffffffffff -922337203 6854775808 26 8000000000000000 9223372036854775807 18 7fffffffffffffff 720575940 37927936 16 0100000000000000 72057594037927935 27 00ffffffffffffff 3602879701896 3968 23 0080000000000000 36028797018963967 40 007fffffffffffff 281474976710656 3 2 0001000000000000 281474976710655 19 0000ffffffffffff 140737488355328 34 000080 0000000000 140737488355327 38 00007fffffffffff 1099511627776 8 0000010000000000 1099511627775 20 000000ffffffffff 549755813888 35 0000008000000000 549755813887 1 0000007fffffffff 4294967296 11 0000000100000000 4294967295 37 00000000ffffffff 2147483648 36 0000000080000000 2147483647 46 000000007fffffff 16777216 15 00000 00001000000 16777215 9 0000000000ffffff 8388608 5 0000000000800000 8388607 7 000 00000007fffff 65536 33 0000000000010000 65535 6 000000000000ffff 32768 22 000000 0000008000 32767 10 0000000000007fff 256 14 0000000000000100 255 29 000000000000 00ff 128 41 0000000000000080 127 25 000000000000007f 0 3 0000000000000000}
342 finish_test 343 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/boundary4.tcl ('k') | third_party/sqlite/src/test/cache.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698