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

Side by Side Diff: third_party/sqlite/ext/rtree/tkt3363.test

Issue 3108030: Move bundled copy of sqlite one level deeper to better separate it... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 4 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/ext/rtree/rtree_util.tcl ('k') | third_party/sqlite/ext/rtree/viewrtree.tcl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # 2008 Sep 08
2 #
3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing:
5 #
6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give.
9 #
10 #***********************************************************************
11 #
12 # The focus of this file is testing that ticket #3363 is fixed.
13 #
14 # $Id: tkt3363.test,v 1.1 2008/09/08 11:07:03 danielk1977 Exp $
15 #
16
17 if {![info exists testdir]} {
18 set testdir [file join [file dirname $argv0] .. .. test]
19 }
20 source [file join [file dirname [info script]] rtree_util.tcl]
21 source $testdir/tester.tcl
22
23 ifcapable !rtree {
24 finish_test
25 return
26 }
27
28 do_test tkt3363.1.1 {
29 execsql { CREATE VIRTUAL TABLE t1 USING rtree(ii, x1, x2, y1, y2) }
30 } {}
31
32 do_test tkt3363.1.2 {
33 for {set ii 1} {$ii < 50} {incr ii} {
34 set x 1000000
35 set y [expr 4000000 + $ii*10]
36 execsql { INSERT INTO t1 VALUES($ii, $x, $x, $y, $y) }
37 }
38 } {}
39
40 do_test tkt3363.1.3 {
41 execsql {
42 SELECT count(*) FROM t1 WHERE +y2>4000425.0;
43 }
44 } {7}
45
46 do_test tkt3363.1.4 {
47 execsql {
48 SELECT count(*) FROM t1 WHERE y2>4000425.0;
49 }
50 } {7}
51
52 finish_test
53
54
OLDNEW
« no previous file with comments | « third_party/sqlite/ext/rtree/rtree_util.tcl ('k') | third_party/sqlite/ext/rtree/viewrtree.tcl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698