| OLD | NEW | 
|   1 # 2008 Jul 14 |   1 # 2008 Jul 14 | 
|   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 # The focus of this file is testing the r-tree extension when it is |  12 # The focus of this file is testing the r-tree extension when it is | 
|  13 # configured to store values as 32 bit integers. |  13 # configured to store values as 32 bit integers. | 
|  14 # |  14 # | 
|  15 # $Id: rtree5.test,v 1.1 2008/07/14 15:37:01 danielk1977 Exp $ |  | 
|  16 # |  | 
|  17  |  15  | 
|  18 if {![info exists testdir]} { |  16 if {![info exists testdir]} { | 
|  19   set testdir [file join [file dirname $argv0] .. .. test] |  17   set testdir [file join [file dirname [info script]] .. .. test] | 
|  20 }  |  18 }  | 
|  21 source $testdir/tester.tcl |  19 source $testdir/tester.tcl | 
|  22  |  20  | 
|  23 ifcapable !rtree { |  21 ifcapable !rtree { | 
|  24   finish_test |  22   finish_test | 
|  25   return |  23   return | 
|  26 } |  24 } | 
|  27  |  25  | 
|  28 do_test rtree5-1.0 { |  26 do_test rtree5-1.0 { | 
|  29   execsql { CREATE VIRTUAL TABLE t1 USING rtree_i32(id, x1, x2, y1, y2) } |  27   execsql { CREATE VIRTUAL TABLE t1 USING rtree_i32(id, x1, x2, y1, y2) } | 
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  71 } {2 2147483643 2147483647 -2147483648 -2147483643} |  69 } {2 2147483643 2147483647 -2147483648 -2147483643} | 
|  72 do_test rtree5-1.13 {  |  70 do_test rtree5-1.13 {  | 
|  73   execsql {  |  71   execsql {  | 
|  74     SELECT * FROM t1 WHERE  |  72     SELECT * FROM t1 WHERE  | 
|  75         x1=2147483643 AND x2=2147483647 AND  |  73         x1=2147483643 AND x2=2147483647 AND  | 
|  76         y1=-2147483648 AND y2=-2147483643 |  74         y1=-2147483648 AND y2=-2147483643 | 
|  77   } |  75   } | 
|  78 } {2 2147483643 2147483647 -2147483648 -2147483643} |  76 } {2 2147483643 2147483647 -2147483648 -2147483643} | 
|  79  |  77  | 
|  80 finish_test |  78 finish_test | 
| OLD | NEW |