Commit b0e57a8
test(search): add end-to-end snippet assertions for #860
Adds full-path tests that drive DocumentSearch.search() over a real
Document and assert SearchResult.snippet highlights the correct
characters (text and regex modes), complementing the existing
helper-level tests. Ported from the equivalent PR #860.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent e090e80 commit b0e57a8
1 file changed
Lines changed: 33 additions & 1 deletion
Lines changed: 33 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
10 | 42 | | |
11 | 43 | | |
12 | 44 | | |
| |||
0 commit comments