Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: third_party/sqlite/src/test/fts3ad.test

Issue 6990047: Import SQLite 3.7.6.3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/sqlite/src/test/fts3ac.test ('k') | third_party/sqlite/src/test/fts3ae.test » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # 2006 October 1 1 # 2006 October 1
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 #*************************************************************************
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 VALUES(3, 'The value is 123456789'); 54 VALUES(3, 'The value is 123456789');
55 SELECT rowid, snippet(t1) FROM t1 WHERE t1 MATCH '123789' 55 SELECT rowid, snippet(t1) FROM t1 WHERE t1 MATCH '123789'
56 } 56 }
57 } {3 {The value is <b>123456789</b>}} 57 } {3 {The value is <b>123456789</b>}}
58 do_test fts3ad-1.6 { 58 do_test fts3ad-1.6 {
59 execsql { 59 execsql {
60 SELECT rowid, snippet(t1) FROM t1 WHERE t1 MATCH '123000000789' 60 SELECT rowid, snippet(t1) FROM t1 WHERE t1 MATCH '123000000789'
61 } 61 }
62 } {3 {The value is <b>123456789</b>}} 62 } {3 {The value is <b>123456789</b>}}
63 63
64 do_test fts3ad-2.1 {
65 execsql {
66 DROP TABLE t1;
67 CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
68 INSERT INTO t1(rowid, content) VALUES(1, 'running and jumping');
69 SELECT rowid FROM t1 WHERE content MATCH 'run jump';
70 }
71 } {1}
72 do_test fts3ad-2.2 {
73 execsql {
74 DROP TABLE t1;
75 CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize= porter);
76 INSERT INTO t1(rowid, content) VALUES(1, 'running and jumping');
77 SELECT rowid FROM t1 WHERE content MATCH 'run jump';
78 }
79 } {1}
80 do_test fts3ad-2.3 {
81 execsql {
82 DROP TABLE t1;
83 CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize= simple);
84 INSERT INTO t1(rowid, content) VALUES(1, 'running and jumping');
85 SELECT rowid FROM t1 WHERE content MATCH 'run jump';
86 }
87 } {}
88 do_test fts3ad-2.4 {
89 execsql {
90 DROP TABLE t1;
91 CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize= porter);
92 INSERT INTO t1(rowid, content) VALUES(1, 'running and jumping');
93 SELECT rowid FROM t1 WHERE content MATCH 'run jump';
94 }
95 } {1}
96 do_test fts3ad-2.5 {
97 execsql {
98 DROP TABLE t1;
99 CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize = porter);
100 INSERT INTO t1(rowid, content) VALUES(1, 'running and jumping');
101 SELECT rowid FROM t1 WHERE content MATCH 'run jump';
102 }
103 } {1}
104
64 105
65 finish_test 106 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/fts3ac.test ('k') | third_party/sqlite/src/test/fts3ae.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698