From 679c99cf66e999ec06128737a9c7dc6987d465e1 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Mon, 2 Dec 2024 09:10:05 -0600 Subject: [PATCH] test(dict): Consistenty filter out unverified entries --- crates/typos-dict/tests/verify.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/typos-dict/tests/verify.rs b/crates/typos-dict/tests/verify.rs index 2bc2131..7c2d1f7 100644 --- a/crates/typos-dict/tests/verify.rs +++ b/crates/typos-dict/tests/verify.rs @@ -203,7 +203,11 @@ fn varcon_words() -> HashSet> { 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()