Lines Matching refs:test
15 # $Id: fts2p.test,v 1.1 2008/07/22 23:32:28 shess Exp $
29 # TODO(shess): Change main.mk to do the right thing and remove this test.
108 proc check_terms {test level index terms} {
113 do_test $test.terms {
119 proc check_terms_all {test terms} {
120 do_test $test.terms {
129 proc check_doclist {test level index term doclist} {
134 do_test $test {
140 proc check_doclist_all {test term doclist} {
142 do_test $test {
154 INSERT INTO t1 (rowid, c) VALUES (1, 'This is a test');
155 INSERT INTO t1 (rowid, c) VALUES (2, 'That was a test');
156 INSERT INTO t1 (rowid, c) VALUES (3, 'This is a test');
168 WHERE t1 MATCH 'this OR that OR was OR a OR is OR test' ORDER BY rowid;
176 check_terms_all fts2p-1.0.1 {a is test that this was}
179 check_doclist_all fts2p-1.0.1.3 test {[1 0[3]] [2 0[3]] [3 0[3]]}
185 check_terms fts2p-1.0.2 0 0 {a is test this}
188 check_doclist fts2p-1.0.2.3 0 0 test {[1 0[3]]}
192 check_terms fts2p-1.0.3 0 1 {a test that was}
194 check_doclist fts2p-1.0.3.2 0 1 test {[2 0[3]]}
199 check_terms fts2p-1.0.4 0 2 {a is test this}
202 check_doclist fts2p-1.0.4.3 0 2 test {[3 0[3]]}
210 INSERT INTO t1 (rowid, c) VALUES (1, 'This is a test');
211 INSERT INTO t1 (rowid, c) VALUES (2, 'That was a test');
212 INSERT INTO t1 (rowid, c) VALUES (3, 'This is a test');
224 WHERE t1 MATCH 'this OR that OR was OR a OR is OR test' ORDER BY rowid;
228 check_terms_all fts2p-1.1.1 {a is test that this was}
231 check_doclist_all fts2p-1.1.1.3 test {[2 0[3]] [3 0[3]]}
236 check_terms fts2p-1.1.2 0 0 {a is test this}
239 check_doclist fts2p-1.1.2.3 0 0 test {[1 0[3]]}
242 check_terms fts2p-1.1.3 0 1 {a test that was}
244 check_doclist fts2p-1.1.3.2 0 1 test {[2 0[3]]}
248 check_terms fts2p-1.1.4 0 2 {a is test this}
251 check_doclist fts2p-1.1.4.3 0 2 test {[3 0[3]]}
254 check_terms fts2p-1.1.5 0 3 {a is test this}
257 check_doclist fts2p-1.1.5.3 0 3 test {[1]}
265 INSERT INTO t1 (rowid, c) VALUES (1, 'This is a test');
266 INSERT INTO t1 (rowid, c) VALUES (2, 'That was a test');
267 INSERT INTO t1 (rowid, c) VALUES (3, 'This is a test');
280 WHERE t1 MATCH 'this OR that OR was OR a OR is OR test' ORDER BY rowid;
284 check_terms_all fts2p-1.2.1 {a is test that this was}
287 check_doclist_all fts2p-1.2.1.3 test {[2 0[3]]}
292 check_terms fts2p-1.2.2 0 0 {a is test this}
295 check_doclist fts2p-1.2.2.3 0 0 test {[1 0[3]]}
298 check_terms fts2p-1.2.3 0 1 {a test that was}
300 check_doclist fts2p-1.2.3.2 0 1 test {[2 0[3]]}
304 check_terms fts2p-1.2.4 0 2 {a is test this}
307 check_doclist fts2p-1.2.4.3 0 2 test {[3 0[3]]}
310 check_terms fts2p-1.2.5 0 3 {a is test this}
313 check_doclist fts2p-1.2.5.3 0 3 test {[1] [3]}
321 INSERT INTO t1 (rowid, c) VALUES (1, 'This is a test');
322 INSERT INTO t1 (rowid, c) VALUES (2, 'That was a test');
323 INSERT INTO t1 (rowid, c) VALUES (3, 'This is a test');
341 WHERE t1 MATCH 'this OR that OR was OR a OR is OR test' ORDER BY rowid;
345 check_terms_all fts2p-1.3.1 {a test that was}
347 check_doclist_all fts2p-1.3.1.2 test {[2 0[3]]}
351 check_terms fts2p-1.3.2 0 0 {a test that was}
353 check_doclist fts2p-1.3.2.2 0 0 test {[2 0[3]]}