Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
fix(fst-dict): remove test verifying fst library searching functionality
Grant Lemons4ba504d000e3
diff --git a/harper-core/src/spell/fst_dictionary.rs b/harper-core/src/spell/fst_dictionary.rsindex 57829cc83..9ae2dcc03 100644--- a/harper-core/src/spell/fst_dictionary.rs+++ b/harper-core/src/spell/fst_dictionary.rs@@ -185,7 +185,6 @@ impl Dictionary for FstDictionary {#[cfg(test)]mod tests {- use fst::IntoStreamer;use itertools::Itertools;use crate::{spell::seq_to_normalized, CharStringExt, Dictionary};@@ -225,37 +224,6 @@ mod tests {);}- #[test]- fn fst_search_hello() {- let dict = FstDictionary::curated();-- let word: Vec<_> = "hvllo".chars().collect();- let misspelled_normalized = seq_to_normalized(&word);- let misspelled_word: String = misspelled_normalized.to_string();- let misspelled_lower: String = misspelled_normalized.to_lower().to_string();-- let aut = fst::automaton::Levenshtein::new(&misspelled_word, 2).unwrap();- let aut_lower = fst::automaton::Levenshtein::new(&misspelled_lower, 2).unwrap();- let word_indexes_stream = dict- .word_map- .search(aut)- .into_stream()- .into_str_keys()- .unwrap();- let word_lower_indexes_stream = dict- .word_map- .search(aut_lower)- .into_stream()- .into_str_keys()- .unwrap();-- dbg!(&word_indexes_stream);- assert!(- word_indexes_stream.contains(&"hello".to_string())- || word_lower_indexes_stream.contains(&"hello".to_string())- );- }-#[test]fn fuzzy_result_sorted_by_edit_distance() {let dict = FstDictionary::curated();