aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/sqlite/unix/sqlite-3.5.1/test/fts1n.test
diff options
context:
space:
mode:
authordan miller2007-10-20 02:49:29 +0000
committerdan miller2007-10-20 02:49:29 +0000
commite36d23a85ebff914d74bb541558c2b6082b78edb (patch)
tree54b58fdf162e78af64055282a6035c8d2443389d /libraries/sqlite/unix/sqlite-3.5.1/test/fts1n.test
parent* Fixed an issue whereby avatar chat distances were being calculated against ... (diff)
downloadopensim-SC-e36d23a85ebff914d74bb541558c2b6082b78edb.zip
opensim-SC-e36d23a85ebff914d74bb541558c2b6082b78edb.tar.gz
opensim-SC-e36d23a85ebff914d74bb541558c2b6082b78edb.tar.bz2
opensim-SC-e36d23a85ebff914d74bb541558c2b6082b78edb.tar.xz
sqlite source (unix build) added to libraries
Diffstat (limited to 'libraries/sqlite/unix/sqlite-3.5.1/test/fts1n.test')
-rw-r--r--libraries/sqlite/unix/sqlite-3.5.1/test/fts1n.test45
1 files changed, 45 insertions, 0 deletions
diff --git a/libraries/sqlite/unix/sqlite-3.5.1/test/fts1n.test b/libraries/sqlite/unix/sqlite-3.5.1/test/fts1n.test
new file mode 100644
index 0000000..2f102b4
--- /dev/null
+++ b/libraries/sqlite/unix/sqlite-3.5.1/test/fts1n.test
@@ -0,0 +1,45 @@
1# 2007 July 24
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# This file implements regression tests for SQLite library. The focus
12# of this script is testing the FTS1 module for errors in the handling
13# of SQLITE_SCHEMA.
14#
15# $Id: fts1n.test,v 1.1 2007/07/25 00:38:06 shess Exp $
16#
17
18set testdir [file dirname $argv0]
19source $testdir/tester.tcl
20
21# If SQLITE_ENABLE_FTS1 is not defined, omit this file.
22ifcapable !fts1 {
23 finish_test
24 return
25}
26
27do_test fts1m-1.1 {
28 execsql {
29 CREATE VIRTUAL TABLE t1 USING fts1(a, b, c);
30 INSERT INTO t1(a, b, c) VALUES('one three four', 'one four', 'one two');
31 SELECT a, b, c FROM t1 WHERE c MATCH 'two';
32 }
33} {{one three four} {one four} {one two}}
34
35# This test was crashing at one point.
36#
37do_test fts1m-1.2 {
38 execsql {
39 SELECT a, b, c FROM t1 WHERE c MATCH 'two';
40 CREATE TABLE t3(a, b, c);
41 SELECT a, b, c FROM t1 WHERE c MATCH 'two';
42 }
43} {{one three four} {one four} {one two} {one three four} {one four} {one two}}
44
45finish_test