mirror of
https://github.com/rust-lang/mdBook
synced 2024-11-14 00:37:15 +00:00
Test that long words are omitted from the search index.
Note they do appear in the 'docs' part of searchindex.json (so they will be visible in search teasers).
This commit is contained in:
parent
d65ce55453
commit
00a55b35a8
3 changed files with 5 additions and 3 deletions
|
@ -1,3 +1,5 @@
|
|||
Capybara capybara capybara.
|
||||
|
||||
Capybara capybara capybara.
|
||||
Capybara capybara capybara.
|
||||
|
||||
ThisLongWordIsIncludedSoWeCanCheckThatSufficientlyLongWordsAreOmittedFromTheSearchIndex.
|
||||
|
|
|
@ -772,7 +772,7 @@ mod search {
|
|||
);
|
||||
assert_eq!(
|
||||
docs[&no_headers]["body"],
|
||||
"Capybara capybara capybara. Capybara capybara capybara."
|
||||
"Capybara capybara capybara. Capybara capybara capybara. ThisLongWordIsIncludedSoWeCanCheckThatSufficientlyLongWordsAreOmittedFromTheSearchIndex."
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -229,7 +229,7 @@
|
|||
"title": "Unicode stress tests"
|
||||
},
|
||||
"18": {
|
||||
"body": "Capybara capybara capybara. Capybara capybara capybara.",
|
||||
"body": "Capybara capybara capybara. Capybara capybara capybara. ThisLongWordIsIncludedSoWeCanCheckThatSufficientlyLongWordsAreOmittedFromTheSearchIndex.",
|
||||
"breadcrumbs": "First Chapter » No Headers",
|
||||
"id": "18",
|
||||
"title": "First Chapter"
|
||||
|
|
Loading…
Reference in a new issue