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

Unified Diff: third_party/sqlite/src/test/fts3ac.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/fts3ab.test ('k') | third_party/sqlite/src/test/fts3ad.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/fts3ac.test
diff --git a/third_party/sqlite/src/test/fts3ac.test b/third_party/sqlite/src/test/fts3ac.test
index 72e5410c7d03305448aebeac0d0d8137d999c80e..84da924b6e8aee8613e17c842ffd1b68646f1ceb 100644
--- a/third_party/sqlite/src/test/fts3ac.test
+++ b/third_party/sqlite/src/test/fts3ac.test
@@ -1131,39 +1131,36 @@ do_test fts3ac-4.2 {
SELECT snippet(email) FROM email
WHERE email MATCH 'christmas candlelight'
}
-} {{<b>...</b> place.? What do you think about going here <b>Christmas</b>
-eve?? They have an 11:00 a.m. service and a <b>candlelight</b> service at 5:00 p.m.,
-among others. <b>...</b>}}
+} {{<b>...</b>here <b>Christmas</b>
+eve?? They have an 11:00 a.m. service and a <b>candlelight</b> service<b>...</b>}}
do_test fts3ac-4.3 {
execsql {
SELECT snippet(email) FROM email
WHERE email MATCH 'deal sheet potential reuse'
}
-} {{EOL-Accenture <b>Deal</b> <b>Sheet</b> <b>...</b> intent
- Review Enron asset base for <b>potential</b> <b>reuse</b>/ licensing
- Contract negotiations <b>...</b>}}
+} {{EOL-Accenture <b>Deal</b> <b>Sheet</b><b>...</b>asset base for <b>potential</b> <b>reuse</b>/ licensing
+ Contract negotiations<b>...</b>}}
do_test fts3ac-4.4 {
execsql {
SELECT snippet(email,'<<<','>>>',' ') FROM email
WHERE email MATCH 'deal sheet potential reuse'
}
-} {{EOL-Accenture <<<Deal>>> <<<Sheet>>> intent
- Review Enron asset base for <<<potential>>> <<<reuse>>>/ licensing
- Contract negotiations }}
+} {{EOL-Accenture <<<Deal>>> <<<Sheet>>> asset base for <<<potential>>> <<<reuse>>>/ licensing
+ Contract negotiations }}
do_test fts3ac-4.5 {
execsql {
SELECT snippet(email,'<<<','>>>',' ') FROM email
WHERE email MATCH 'first things'
}
-} {{Re: <<<First>>> Polish Deal! Congrats! <<<Things>>> seem to be building rapidly now on the }}
+} {{Re: <<<First>>> Polish Deal! Congrats! <<<Things>>> seem to be building rapidly now }}
do_test fts3ac-4.6 {
execsql {
SELECT snippet(email) FROM email
WHERE email MATCH 'chris is here'
}
-} {{<b>chris</b>.germany@enron.com <b>...</b> Sounds good to me. I bet this <b>is</b> next to the Warick?? Hotel. <b>...</b> place.? What do you think about going <b>here</b> Christmas
-eve?? They have an 11:00 a.m. <b>...</b>}}
+} {{<b>...</b><b>chris</b>.germany@enron.com'" <<b>chris</b><b>...</b>bet this <b>is</b> next to<b>...</b>about going <b>here</b> Christmas
+eve<b>...</b>}}
do_test fts3ac-4.7 {
execsql {
SELECT snippet(email) FROM email
@@ -1171,19 +1168,15 @@ do_test fts3ac-4.7 {
}
} {{Erin:
-<b>Pursuant</b> <b>to</b> your request, attached are the Schedule to <b>...</b>}}
+<b>Pursuant</b> <b>to</b> your request, attached are the Schedule to the ISDA Master Agreement, together<b>...</b>}}
do_test fts3ac-4.8 {
execsql {
SELECT snippet(email) FROM email
WHERE email MATCH 'ancillary load davis'
}
-} {{pete.<b>davis</b>@enron.com <b>...</b> Start Date: 4/22/01; HourAhead hour: 3; No <b>ancillary</b> schedules awarded.
-Variances detected.
-Variances detected in <b>Load</b> schedule.
-
- LOG MESSAGES:
+} {{pete.<b>davis</b>@enron.com<b>...</b>3; No <b>ancillary</b> schedules awarded<b>...</b>detected in <b>Load</b> schedule.
-PARSING <b>...</b>}}
+ LOG<b>...</b>}}
# Combinations of AND and OR operators:
#
@@ -1192,22 +1185,35 @@ do_test fts3ac-5.1 {
SELECT snippet(email) FROM email
WHERE email MATCH 'questar enron OR com'
}
-} {{matt.smith@<b>enron</b>.<b>com</b> <b>...</b> six reports:
-
-31 Keystone Receipts
+} {{matt.smith@<b>enron</b>.<b>com</b><b>...</b>31 Keystone Receipts
15 <b>Questar</b> Pipeline
-40 Rockies Production
-22 West_2 <b>...</b>}}
+40 Rockies<b>...</b>}}
+
do_test fts3ac-5.2 {
execsql {
SELECT snippet(email) FROM email
WHERE email MATCH 'enron OR com questar'
}
-} {{matt.smith@<b>enron</b>.<b>com</b> <b>...</b> six reports:
-
-31 Keystone Receipts
+} {{matt.smith@<b>enron</b>.<b>com</b><b>...</b>31 Keystone Receipts
15 <b>Questar</b> Pipeline
-40 Rockies Production
-22 West_2 <b>...</b>}}
+40 Rockies<b>...</b>}}
+
+#-------------------------------------------------------------------------
+# Test a problem reported on the mailing list.
+#
+do_test fts3ac-6.1 {
+ execsql {
+ CREATE VIRTUAL TABLE ft USING fts3(one, two);
+ INSERT INTO ft VALUES('', 'foo');
+ INSERT INTO ft VALUES('foo', 'foo');
+ SELECT offsets(ft) FROM ft WHERE ft MATCH 'foo';
+ }
+} {{1 0 0 3} {0 0 0 3 1 0 0 3}}
+do_test fts3ac-6.2 {
+ execsql {
+ DELETE FROM ft WHERE one = 'foo';
+ SELECT offsets(ft) FROM ft WHERE ft MATCH 'foo';
+ }
+} {{1 0 0 3}}
finish_test
« no previous file with comments | « third_party/sqlite/src/test/fts3ab.test ('k') | third_party/sqlite/src/test/fts3ad.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698