Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix KMP tests
  • Loading branch information
midzer committed Feb 26, 2025
commit dde6088902e54c4192dc0972603530e6e16d2a75
4 changes: 2 additions & 2 deletions test/scripts/search/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ describe('search', () => {
describe('kmp', () => {
let searcher: SearchByKMP<SearchableShape>;
beforeEach(() => {
process.env.CHOICES_SEARCH_KMP = undefined;
process.env.CHOICES_SEARCH_KMP = '1';
searcher = new SearchByKMP<SearchableShape>(options);
searcher.index(haystack);
});
Expand All @@ -118,7 +118,7 @@ describe('search', () => {
});
it('label suffix', () => {
const results = searcher.search(`${haystack.length - 1}`);
expect(results.length).eq(0);
expect(results.length).eq(2);
});
});

Expand Down
Loading