Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
fix: test 'spell::hunspell::tests::correctly_expands_test_files' failed
Cryolitia PukNgae133671262a16
diff --git a/harper-core/src/spell/hunspell/mod.rs b/harper-core/src/spell/hunspell/mod.rsindex 28bbf5a5f..b5a3b48f3 100644--- a/harper-core/src/spell/hunspell/mod.rs+++ b/harper-core/src/spell/hunspell/mod.rs@@ -28,7 +28,7 @@ pub fn parse_default_attribute_list() -> AttributeList {#[cfg(test)]mod tests {- use hashbrown::HashMap;+ use hashbrown::{HashMap, HashSet};use serde_json::json;use super::word_list::parse_word_list;@@ -88,7 +88,7 @@ mod tests {let mut expanded = HashMap::new();attributes.expand_marked_words(words, &mut expanded);- let expanded: Vec<String> = expanded+ let expanded: HashSet<String> = expanded.into_iter().map(|v| v.0.into_iter().collect()).collect();@@ -96,6 +96,9 @@ mod tests {assert_eq!(expanded,vec!["hello", "tried", "reworked", "rework", "worked", "work", "try"]+ .into_iter()+ .map(|v| v.into())+ .collect())}