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

Unified Diff: third_party/sqlite/src/test/fts3ad.test

Issue 5626002: Update sqlite to 3.7.3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/third_party/sqlite/src
Patch Set: Update version in doc. Created 10 years 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 side-by-side diff with in-line comments
Download patch
Index: third_party/sqlite/src/test/fts3ad.test
diff --git a/third_party/sqlite/src/test/fts3ad.test b/third_party/sqlite/src/test/fts3ad.test
index 420b5b27453f4b2bbdad63da5012bc6ae6160cc5..e373339d4e74b10991efac46192c1e00c397a475 100644
--- a/third_party/sqlite/src/test/fts3ad.test
+++ b/third_party/sqlite/src/test/fts3ad.test
@@ -61,5 +61,46 @@ do_test fts3ad-1.6 {
}
} {3 {The value is <b>123456789</b>}}
+do_test fts3ad-2.1 {
+ execsql {
+ DROP TABLE t1;
+ CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
+ INSERT INTO t1(rowid, content) VALUES(1, 'running and jumping');
+ SELECT rowid FROM t1 WHERE content MATCH 'run jump';
+ }
+} {1}
+do_test fts3ad-2.2 {
+ execsql {
+ DROP TABLE t1;
+ CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize= porter);
+ INSERT INTO t1(rowid, content) VALUES(1, 'running and jumping');
+ SELECT rowid FROM t1 WHERE content MATCH 'run jump';
+ }
+} {1}
+do_test fts3ad-2.3 {
+ execsql {
+ DROP TABLE t1;
+ CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize= simple);
+ INSERT INTO t1(rowid, content) VALUES(1, 'running and jumping');
+ SELECT rowid FROM t1 WHERE content MATCH 'run jump';
+ }
+} {}
+do_test fts3ad-2.4 {
+ execsql {
+ DROP TABLE t1;
+ CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize= porter);
+ INSERT INTO t1(rowid, content) VALUES(1, 'running and jumping');
+ SELECT rowid FROM t1 WHERE content MATCH 'run jump';
+ }
+} {1}
+do_test fts3ad-2.5 {
+ execsql {
+ DROP TABLE t1;
+ CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize = porter);
+ INSERT INTO t1(rowid, content) VALUES(1, 'running and jumping');
+ SELECT rowid FROM t1 WHERE content MATCH 'run jump';
+ }
+} {1}
+
finish_test

Powered by Google App Engine
This is Rietveld 408576698