Skip to content

Commit

Permalink
Update wordListCompiler.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed May 11, 2023
1 parent 54e93f6 commit 772d9c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/cspell-tools/src/compiler/wordListCompiler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ describe('Validate Larger Dictionary', () => {
const trie = normalizeWordsToTrie(words);
expect(isCircular(trie)).toBe(false);
const nWords = toArray(legacyNormalizeWords(words)).sort().filter(uniqueFilter(1000));
const results = iteratorTrieWords(trie).toArray().sort().filter(uniqueFilter(1000));
const results = [...iteratorTrieWords(trie)].sort().filter(uniqueFilter(1000));
expect(results).toEqual(nWords);
}, 60000);

Expand All @@ -167,11 +167,11 @@ describe('Validate Larger Dictionary', () => {
const trie = Trie.consolidate(normalizeWordsToTrie(words));
expect(isCircular(trie)).toBe(false);
const nWords = toArray(legacyNormalizeWords(words)).sort().filter(uniqueFilter(1000));
const results = iteratorTrieWords(trie).toArray().sort();
const results = [...iteratorTrieWords(trie)].sort();
expect(results).toEqual(nWords);
const data = serializeTrie(trie, { base: 40 });
const trie2 = importTrie(data);
const results2 = iteratorTrieWords(trie2).toArray();
const results2 = [...iteratorTrieWords(trie2)];
expect(results2).toEqual(results);
}, 60000);
});
Expand Down

0 comments on commit 772d9c8

Please sign in to comment.