mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Bug fix in the FTS1 snippet generator. Improvements in the way the snippet
generator handles whitespace. (CVS 3448) FossilOrigin-Name: d3f4ae827582bd0aac54ae3211d272a1429b6523
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
# This file implements regression tests for SQLite library. The
|
||||
# focus of this script is testing the FTS1 module.
|
||||
#
|
||||
# $Id: fts1c.test,v 1.7 2006/09/21 02:03:11 drh Exp $
|
||||
# $Id: fts1c.test,v 1.8 2006/09/28 18:37:16 drh Exp $
|
||||
#
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
@@ -1131,31 +1131,31 @@ do_test fts1c-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>
|
||||
} {{<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>}}
|
||||
among others. <b>...</b>}}
|
||||
|
||||
do_test fts1c-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
|
||||
} {{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>}}
|
||||
Contract negotiations <b>...</b>}}
|
||||
do_test fts1c-4.4 {
|
||||
execsql {
|
||||
SELECT snippet(email,'<<<','>>>',' ') FROM email
|
||||
WHERE email MATCH 'deal sheet potential reuse'
|
||||
}
|
||||
} {{EOL-Accenture <<<Deal>>> <<<Sheet>>> intent
|
||||
} {{EOL-Accenture <<<Deal>>> <<<Sheet>>> intent
|
||||
Review Enron asset base for <<<potential>>> <<<reuse>>>/ licensing
|
||||
Contract negotiations
|
||||
|
||||
}}
|
||||
Contract negotiations }}
|
||||
do_test fts1c-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 }}
|
||||
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user