3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing:
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.
10 #*************************************************************************
11 # This file implements regression tests for SQLite library. The
12 # focus of this script is testing the FTS3 module.
15 set testdir [file dirname $argv0]
16 source $testdir/tester.tcl
17 set testprefix fts3prefix2
24 do_execsql_test 1.0 { PRAGMA page_size = 512 }
26 CREATE VIRTUAL TABLE t1 USING fts4(x, prefix="2,3");
29 INSERT INTO t1 VALUES('T TX T TX T TX T TX T TX');
30 INSERT INTO t1 SELECT * FROM t1; -- 2
31 INSERT INTO t1 SELECT * FROM t1; -- 4
32 INSERT INTO t1 SELECT * FROM t1; -- 8
33 INSERT INTO t1 SELECT * FROM t1; -- 16
34 INSERT INTO t1 SELECT * FROM t1; -- 32
35 INSERT INTO t1 SELECT * FROM t1; -- 64
36 INSERT INTO t1 SELECT * FROM t1; -- 128
37 INSERT INTO t1 SELECT * FROM t1; -- 256
38 INSERT INTO t1 SELECT * FROM t1; -- 512
39 INSERT INTO t1 SELECT * FROM t1; -- 1024
40 INSERT INTO t1 SELECT * FROM t1; -- 2048
45 INSERT INTO t1 SELECT * FROM t1 LIMIT 10;
46 INSERT INTO t1 SELECT * FROM t1 LIMIT 10;
47 INSERT INTO t1 SELECT * FROM t1 LIMIT 10;
48 DELETE FROM t1 WHERE docid > 5;
52 SELECT * FROM t1 WHERE t1 MATCH 'T*';
54 {T TX T TX T TX T TX T TX}
55 {T TX T TX T TX T TX T TX}
56 {T TX T TX T TX T TX T TX}
57 {T TX T TX T TX T TX T TX}
58 {T TX T TX T TX T TX T TX}