test(dict): Consistenty filter out unverified entries

This commit is contained in:
Ed Page 2024-12-02 09:10:05 -06:00
parent bd36f89fcd
commit 679c99cf66

View file

@ -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()