Commit fe878fd
committed
test(data): pin tokenization-through-delimiters as design intent
The reviewer noted that TestSearchDocumentsBadSyntaxGraceful does not
catch the case where a malformed input like "(kitchen" normalizes to
the inner term "kitchen". In our model that is the intended behavior:
phrase-wrap escape relies on the FTS5 tokenizer to extract usable terms
from whatever surrounding punctuation the user typed mid-keystroke.
Add an explicit positive test asserting that "(kitchen", "kitchen)",
'"kitchen', and "kitchen*" all match a document containing "kitchen",
so a future reader doesn't try to "fix" this by routing malformed
input to no-results.1 parent 8a46ec2 commit fe878fd
1 file changed
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
174 | 200 | | |
175 | 201 | | |
176 | 202 | | |
| |||
0 commit comments