diff options
| author | bernard <[email protected]> | 2017-11-02 13:50:42 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2017-11-02 13:50:42 +0800 |
| commit | b2057f506a09e2adef81fc77efd697d16ae14bec (patch) | |
| tree | 3affefabfe376a0ec1b3ac4a5eef957c1dd58dc8 /components/external/SQLite-3.8.1/ext/rtree/rtree5.test | |
| parent | 23582c8129228b4961ad35319cfd2d270039345f (diff) | |
[External] Remove external from RT-Thread
Diffstat (limited to 'components/external/SQLite-3.8.1/ext/rtree/rtree5.test')
| -rw-r--r-- | components/external/SQLite-3.8.1/ext/rtree/rtree5.test | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/components/external/SQLite-3.8.1/ext/rtree/rtree5.test b/components/external/SQLite-3.8.1/ext/rtree/rtree5.test deleted file mode 100644 index 8ff90b0cb7..0000000000 --- a/components/external/SQLite-3.8.1/ext/rtree/rtree5.test +++ /dev/null @@ -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. -# - -if {![info exists testdir]} { - set testdir [file join [file dirname [info script]] .. .. 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} -ifcapable !rtree_int_only { - 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.11 { - 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 |
