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

Unified Diff: third_party/sqlite/src/test/fts3near.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/sqlite/src/test/fts3matchinfo.test ('k') | third_party/sqlite/src/test/fts3query.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/fts3near.test
diff --git a/third_party/sqlite/src/test/fts3near.test b/third_party/sqlite/src/test/fts3near.test
index e824133bb50566ecd16ff16b108327eab305dad3..9c4409e1ed3cd885750a8d9abd2ec3f559591bfb 100644
--- a/third_party/sqlite/src/test/fts3near.test
+++ b/third_party/sqlite/src/test/fts3near.test
@@ -76,6 +76,17 @@ do_test fts3near-1.15 {
execsql {SELECT docid FROM t1 WHERE content MATCH 'one NEAR two NEAR one'}
} {3}
+do_test fts3near-1.16 {
+ execsql {
+ SELECT docid FROM t1 WHERE content MATCH '"one three" NEAR/0 "four five"'
+ }
+} {1}
+do_test fts3near-1.17 {
+ execsql {
+ SELECT docid FROM t1 WHERE content MATCH '"four five" NEAR/0 "one three"'
+ }
+} {1}
+
# Output format of the offsets() function:
#
@@ -154,6 +165,7 @@ do_test fts3near-3.6 {
SELECT offsets(t1) FROM t1 WHERE content MATCH 'three NEAR/0 "two four"'
}
} {{0 0 8 5 0 1 14 3 0 2 18 4}}
+breakpoint
do_test fts3near-3.7 {
execsql {
SELECT offsets(t1) FROM t1 WHERE content MATCH '"two four" NEAR/0 three'}
@@ -170,7 +182,7 @@ do_test fts3near-4.1 {
execsql {
SELECT snippet(t1) FROM t1 WHERE content MATCH 'specification NEAR supports'
}
-} {{<b>...</b> devices, handheld devices, etc. This <b>specification</b> also <b>supports</b> content positioning, downloadable fonts, <b>...</b>}}
+} {{<b>...</b>braille devices, handheld devices, etc. This <b>specification</b> also <b>supports</b> content positioning, downloadable fonts, table layout<b>...</b>}}
do_test fts3near-5.1 {
execsql {
« no previous file with comments | « third_party/sqlite/src/test/fts3matchinfo.test ('k') | third_party/sqlite/src/test/fts3query.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698