Skip to content

Commit

Permalink
test(dict): Consistenty filter out unverified entries
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Dec 2, 2024
1 parent bd36f89 commit 679c99c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/typos-dict/tests/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,11 @@ fn varcon_words() -> HashSet<UniCase<&'static str>> {

fn proper_word_variants() -> HashMap<&'static str, HashSet<&'static str>> {
let mut words: HashMap<&'static str, HashSet<&'static str>> = HashMap::new();
for entry in varcon::VARCON.iter().flat_map(|c| c.entries.iter()) {
for entry in varcon::VARCON
.iter()
.filter(|c| c.verified)
.flat_map(|c| c.entries.iter())
{
let variants: HashSet<_> = entry
.variants
.iter()
Expand Down

0 comments on commit 679c99c

Please sign in to comment.