mod common;
use crate::common::*;
const ASTRONOMY_WORDS: &str = "sun moon comet nebula pulsars asteroid satellite spacecraft";
#[test]
fn test_search_allows_typos() {
#[rustfmt::skip]
test_ingest_then_query!(push: ASTRONOMY_WORDS [ensure_no_stopword] LANG("eng"), query: [
("sum", false),
("ssun", true), ("noon", true), ("commit", false),
("nzbula", true), ("nzbala", false),
("plusars", true), ("saetllite", true), ("satemmote", false),
("sapcecrzft", true), ("sapcecarft", false),
] LANG("eng"));
}
#[test]
#[ignore = "Not supported yet (FIXME)"]
fn test_search_term_order_insignificant() {
#[rustfmt::skip]
test_ingest_then_query!(push: ASTRONOMY_WORDS [ensure_no_stopword], query: [
("satellite pulsars nebula", true),
(&format!("missing {ASTRONOMY_WORDS}"), true),
]);
}
#[test]
#[ignore = "Not supported yet"]
fn test_chinese_typo_correction() {
unimplemented!()
}