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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # 2006 September 14 1 # 2006 September 14
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 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after
1124 execsql { 1124 execsql {
1125 SELECT snippet(email) FROM email 1125 SELECT snippet(email) FROM email
1126 WHERE email MATCH 'subject:gas reminder' 1126 WHERE email MATCH 'subject:gas reminder'
1127 } 1127 }
1128 } {{Alert Posted 10:00 AM November 20,2000: E-<b>GAS</b> Request <b>Reminder</b> }} 1128 } {{Alert Posted 10:00 AM November 20,2000: E-<b>GAS</b> Request <b>Reminder</b> }}
1129 do_test fts3ac-4.2 { 1129 do_test fts3ac-4.2 {
1130 execsql { 1130 execsql {
1131 SELECT snippet(email) FROM email 1131 SELECT snippet(email) FROM email
1132 WHERE email MATCH 'christmas candlelight' 1132 WHERE email MATCH 'christmas candlelight'
1133 } 1133 }
1134 } {{<b>...</b> place.? What do you think about going here <b>Christmas</b> 1134 } {{<b>...</b>here <b>Christmas</b>
1135 eve?? They have an 11:00 a.m. service and a <b>candlelight</b> service at 5:00 p .m., 1135 eve?? They have an 11:00 a.m. service and a <b>candlelight</b> service<b>...</b> }}
1136 among others. <b>...</b>}}
1137 1136
1138 do_test fts3ac-4.3 { 1137 do_test fts3ac-4.3 {
1139 execsql { 1138 execsql {
1140 SELECT snippet(email) FROM email 1139 SELECT snippet(email) FROM email
1141 WHERE email MATCH 'deal sheet potential reuse' 1140 WHERE email MATCH 'deal sheet potential reuse'
1142 } 1141 }
1143 } {{EOL-Accenture <b>Deal</b> <b>Sheet</b> <b>...</b> intent 1142 } {{EOL-Accenture <b>Deal</b> <b>Sheet</b><b>...</b>asset base for <b>potential< /b> <b>reuse</b>/ licensing
1144 Review Enron asset base for <b>potential</b> <b>reuse</b>/ licensing 1143 Contract negotiations<b>...</b>}}
1145 Contract negotiations <b>...</b>}}
1146 do_test fts3ac-4.4 { 1144 do_test fts3ac-4.4 {
1147 execsql { 1145 execsql {
1148 SELECT snippet(email,'<<<','>>>',' ') FROM email 1146 SELECT snippet(email,'<<<','>>>',' ') FROM email
1149 WHERE email MATCH 'deal sheet potential reuse' 1147 WHERE email MATCH 'deal sheet potential reuse'
1150 } 1148 }
1151 } {{EOL-Accenture <<<Deal>>> <<<Sheet>>> intent 1149 } {{EOL-Accenture <<<Deal>>> <<<Sheet>>> asset base for <<<potential>>> <<<reuse >>>/ licensing
1152 Review Enron asset base for <<<potential>>> <<<reuse>>>/ licensing 1150 Contract negotiations }}
1153 Contract negotiations }}
1154 do_test fts3ac-4.5 { 1151 do_test fts3ac-4.5 {
1155 execsql { 1152 execsql {
1156 SELECT snippet(email,'<<<','>>>',' ') FROM email 1153 SELECT snippet(email,'<<<','>>>',' ') FROM email
1157 WHERE email MATCH 'first things' 1154 WHERE email MATCH 'first things'
1158 } 1155 }
1159 } {{Re: <<<First>>> Polish Deal! Congrats! <<<Things>>> seem to be building ra pidly now on the }} 1156 } {{Re: <<<First>>> Polish Deal! Congrats! <<<Things>>> seem to be building rap idly now }}
1160 do_test fts3ac-4.6 { 1157 do_test fts3ac-4.6 {
1161 execsql { 1158 execsql {
1162 SELECT snippet(email) FROM email 1159 SELECT snippet(email) FROM email
1163 WHERE email MATCH 'chris is here' 1160 WHERE email MATCH 'chris is here'
1164 } 1161 }
1165 } {{<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 go ing <b>here</b> Christmas 1162 } {{<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
1166 eve?? They have an 11:00 a.m. <b>...</b>}} 1163 eve<b>...</b>}}
1167 do_test fts3ac-4.7 { 1164 do_test fts3ac-4.7 {
1168 execsql { 1165 execsql {
1169 SELECT snippet(email) FROM email 1166 SELECT snippet(email) FROM email
1170 WHERE email MATCH '"pursuant to"' 1167 WHERE email MATCH '"pursuant to"'
1171 } 1168 }
1172 } {{Erin: 1169 } {{Erin:
1173 1170
1174 <b>Pursuant</b> <b>to</b> your request, attached are the Schedule to <b>...</b>} } 1171 <b>Pursuant</b> <b>to</b> your request, attached are the Schedule to the ISDA Ma ster Agreement, together<b>...</b>}}
1175 do_test fts3ac-4.8 { 1172 do_test fts3ac-4.8 {
1176 execsql { 1173 execsql {
1177 SELECT snippet(email) FROM email 1174 SELECT snippet(email) FROM email
1178 WHERE email MATCH 'ancillary load davis' 1175 WHERE email MATCH 'ancillary load davis'
1179 } 1176 }
1180 } {{pete.<b>davis</b>@enron.com <b>...</b> Start Date: 4/22/01; HourAhead hour: 3; No <b>ancillary</b> schedules awarded. 1177 } {{pete.<b>davis</b>@enron.com<b>...</b>3; No <b>ancillary</b> schedules award ed<b>...</b>detected in <b>Load</b> schedule.
1181 Variances detected.
1182 Variances detected in <b>Load</b> schedule.
1183 1178
1184 LOG MESSAGES: 1179 LOG<b>...</b>}}
1185
1186 PARSING <b>...</b>}}
1187 1180
1188 # Combinations of AND and OR operators: 1181 # Combinations of AND and OR operators:
1189 # 1182 #
1190 do_test fts3ac-5.1 { 1183 do_test fts3ac-5.1 {
1191 execsql { 1184 execsql {
1192 SELECT snippet(email) FROM email 1185 SELECT snippet(email) FROM email
1193 WHERE email MATCH 'questar enron OR com' 1186 WHERE email MATCH 'questar enron OR com'
1194 } 1187 }
1195 } {{matt.smith@<b>enron</b>.<b>com</b> <b>...</b> six reports: 1188 } {{matt.smith@<b>enron</b>.<b>com</b><b>...</b>31 Keystone Receipts
1189 15 <b>Questar</b> Pipeline
1190 40 Rockies<b>...</b>}}
1196 1191
1197 31 Keystone Receipts
1198 15 <b>Questar</b> Pipeline
1199 40 Rockies Production
1200 22 West_2 <b>...</b>}}
1201 do_test fts3ac-5.2 { 1192 do_test fts3ac-5.2 {
1202 execsql { 1193 execsql {
1203 SELECT snippet(email) FROM email 1194 SELECT snippet(email) FROM email
1204 WHERE email MATCH 'enron OR com questar' 1195 WHERE email MATCH 'enron OR com questar'
1205 } 1196 }
1206 } {{matt.smith@<b>enron</b>.<b>com</b> <b>...</b> six reports: 1197 } {{matt.smith@<b>enron</b>.<b>com</b><b>...</b>31 Keystone Receipts
1198 15 <b>Questar</b> Pipeline
1199 40 Rockies<b>...</b>}}
1207 1200
1208 31 Keystone Receipts 1201 #-------------------------------------------------------------------------
1209 15 <b>Questar</b> Pipeline 1202 # Test a problem reported on the mailing list.
1210 40 Rockies Production 1203 #
1211 22 West_2 <b>...</b>}} 1204 do_test fts3ac-6.1 {
1205 execsql {
1206 CREATE VIRTUAL TABLE ft USING fts3(one, two);
1207 INSERT INTO ft VALUES('', 'foo');
1208 INSERT INTO ft VALUES('foo', 'foo');
1209 SELECT offsets(ft) FROM ft WHERE ft MATCH 'foo';
1210 }
1211 } {{1 0 0 3} {0 0 0 3 1 0 0 3}}
1212 do_test fts3ac-6.2 {
1213 execsql {
1214 DELETE FROM ft WHERE one = 'foo';
1215 SELECT offsets(ft) FROM ft WHERE ft MATCH 'foo';
1216 }
1217 } {{1 0 0 3}}
1212 1218
1213 finish_test 1219 finish_test
OLDNEW
« 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