// Smite tests for pattern module use xrust::trees::smite::RNode; mod patterngeneric; mod smite; #[test] #[should_panic] fn pattern_empty() { patterngeneric::pattern_empty::().expect("test failed") } #[test] fn pattern_predicate_1_pos() { patterngeneric::pattern_predicate_1_pos::(smite::make_empty_doc).expect("test failed") } #[test] fn pattern_predicate_1_neg() { patterngeneric::pattern_predicate_1_neg::(smite::make_empty_doc).expect("test failed") } #[test] fn pattern_sel_root_pos() { patterngeneric::pattern_sel_root_pos::(smite::make_empty_doc).expect("test failed") } #[test] fn pattern_sel_root_neg() { patterngeneric::pattern_sel_root_neg::(smite::make_empty_doc).expect("test failed") } #[test] fn pattern_sel_1_pos() { patterngeneric::pattern_sel_1_pos::(smite::make_empty_doc).expect("test failed") } #[test] fn pattern_sel_1_neg() { patterngeneric::pattern_sel_1_neg::(smite::make_empty_doc).expect("test failed") } #[test] fn pattern_sel_2_pos() { patterngeneric::pattern_sel_2_pos::(smite::make_empty_doc).expect("test failed") } #[test] fn pattern_sel_2_neg() { patterngeneric::pattern_sel_2_neg::(smite::make_empty_doc).expect("test failed") } #[test] fn pattern_abbrev_1_pos() { patterngeneric::pattern_abbrev_1_pos::(smite::make_empty_doc).expect("test failed") } #[test] fn pattern_abbrev_1_neg() { patterngeneric::pattern_abbrev_1_neg::(smite::make_empty_doc).expect("test failed") } #[test] fn pattern_abbrev_2_pos() { patterngeneric::pattern_abbrev_2_pos::(smite::make_empty_doc).expect("test failed") } #[test] fn pattern_abbrev_2_neg() { patterngeneric::pattern_abbrev_2_neg::(smite::make_empty_doc).expect("test failed") } #[test] fn pattern_sel_text_kind_1_pos() { patterngeneric::pattern_sel_text_kind_1_pos::(smite::make_empty_doc) .expect("test failed") }