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

Unified Diff: third_party/sqlite/ext/rtree/rtree5.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/sqlite/ext/rtree/rtree4.test ('k') | third_party/sqlite/ext/rtree/rtree6.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/ext/rtree/rtree5.test
===================================================================
--- third_party/sqlite/ext/rtree/rtree5.test (revision 56608)
+++ third_party/sqlite/ext/rtree/rtree5.test (working copy)
@@ -1,80 +0,0 @@
-# 2008 Jul 14
-#
-# The author disclaims copyright to this source code. In place of
-# a legal notice, here is a blessing:
-#
-# May you do good and not evil.
-# May you find forgiveness for yourself and forgive others.
-# May you share freely, never taking more than you give.
-#
-#***********************************************************************
-#
-# The focus of this file is testing the r-tree extension when it is
-# configured to store values as 32 bit integers.
-#
-# $Id: rtree5.test,v 1.1 2008/07/14 15:37:01 danielk1977 Exp $
-#
-
-if {![info exists testdir]} {
- set testdir [file join [file dirname $argv0] .. .. test]
-}
-source $testdir/tester.tcl
-
-ifcapable !rtree {
- finish_test
- return
-}
-
-do_test rtree5-1.0 {
- execsql { CREATE VIRTUAL TABLE t1 USING rtree_i32(id, x1, x2, y1, y2) }
-} {}
-do_test rtree5-1.1 {
- execsql { INSERT INTO t1 VALUES(1, 5, 10, 4, 11.2) }
-} {}
-do_test rtree5-1.2 {
- execsql { SELECT * FROM t1 }
-} {1 5 10 4 11}
-do_test rtree5-1.3 {
- execsql { SELECT typeof(x1) FROM t1 }
-} {integer}
-
-do_test rtree5-1.4 {
- execsql { SELECT x1==5 FROM t1 }
-} {1}
-do_test rtree5-1.5 {
- execsql { SELECT x1==5.2 FROM t1 }
-} {0}
-do_test rtree5-1.6 {
- execsql { SELECT x1==5.0 FROM t1 }
-} {1}
-
-do_test rtree5-1.7 {
- execsql { SELECT count(*) FROM t1 WHERE x1==5 }
-} {1}
-do_test rtree5-1.8 {
- execsql { SELECT count(*) FROM t1 WHERE x1==5.2 }
-} {0}
-do_test rtree5-1.9 {
- execsql { SELECT count(*) FROM t1 WHERE x1==5.0 }
-} {1}
-
-do_test rtree5-1.10 {
- execsql { SELECT (1<<31)-5, (1<<31)-1, -1*(1<<31), -1*(1<<31)+5 }
-} {2147483643 2147483647 -2147483648 -2147483643}
-do_test rtree5-1.10 {
- execsql {
- INSERT INTO t1 VALUES(2, (1<<31)-5, (1<<31)-1, -1*(1<<31), -1*(1<<31)+5)
- }
-} {}
-do_test rtree5-1.12 {
- execsql { SELECT * FROM t1 WHERE id=2 }
-} {2 2147483643 2147483647 -2147483648 -2147483643}
-do_test rtree5-1.13 {
- execsql {
- SELECT * FROM t1 WHERE
- x1=2147483643 AND x2=2147483647 AND
- y1=-2147483648 AND y2=-2147483643
- }
-} {2 2147483643 2147483647 -2147483648 -2147483643}
-
-finish_test
« no previous file with comments | « third_party/sqlite/ext/rtree/rtree4.test ('k') | third_party/sqlite/ext/rtree/rtree6.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698