// XPath tests use xrust::trees::smite::RNode; mod smite; mod xpathgeneric; #[test] fn xpath_empty() { xpathgeneric::generic_empty::().expect("test failed") } #[test] fn xpath_step_1_pos() { xpathgeneric::generic_step_1_pos::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_step_2_pos() { xpathgeneric::generic_step_2_pos::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_step_2() { xpathgeneric::generic_step_2::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_step_attribute_1() { xpathgeneric::generic_step_attribute_1::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_step_attribute_2() { xpathgeneric::generic_step_attribute_2::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_step_wild_1() { xpathgeneric::generic_step_wild_1::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_step_parent_1() { xpathgeneric::generic_step_parent_1::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_step_parent_2() { xpathgeneric::generic_step_parent_2::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_step_wild_2() { xpathgeneric::generic_step_wild_2::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_path_1_pos() { xpathgeneric::generic_path_1_pos::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_path_2_pos() { xpathgeneric::generic_path_2_pos::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_path_1_neg() { xpathgeneric::generic_path_1_neg::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_path_3() { xpathgeneric::generic_path_3::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_path_4() { xpathgeneric::generic_path_4::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_navigate_predicate_1() { xpathgeneric::generic_navigate_predicate_1::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_generate_id() { xpathgeneric::generic_generate_id::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_union() { xpathgeneric::generic_union::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_intersectexcept() { xpathgeneric::generic_intersectexcept::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_instanceof() { xpathgeneric::generic_instanceof::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_treat() { xpathgeneric::generic_treat::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_castable() { xpathgeneric::generic_castable::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_cast() { xpathgeneric::generic_cast::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_arrow() { xpathgeneric::generic_arrow::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_unary() { xpathgeneric::generic_unary::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_simplemap() { xpathgeneric::generic_simplemap::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_int() { xpathgeneric::generic_int::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_decimal() { xpathgeneric::generic_decimal::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_exponent() { xpathgeneric::generic_exponent::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_string_apos() { xpathgeneric::generic_string_apos::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_string_apos_esc() { xpathgeneric::generic_string_apos_esc::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_string_quot() { xpathgeneric::generic_string_quot::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_string_quot_esc() { xpathgeneric::generic_string_quot_esc::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_literal_sequence() { xpathgeneric::generic_literal_sequence::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_literal_sequence_ws() { xpathgeneric::generic_literal_sequence_ws::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_comment() { xpathgeneric::generic_xpath_comment::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_context_item() { xpathgeneric::generic_xpath_context_item::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_parens_singleton() { xpathgeneric::generic_parens_singleton::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_root_desc_or_self_1() { xpathgeneric::generic_root_desc_or_self_1::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_root_desc_or_self_2() { xpathgeneric::generic_root_desc_or_self_2::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_root_desc_or_self_3() { xpathgeneric::generic_root_desc_or_self_3::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_rel_path_1() { xpathgeneric::generic_rel_path_1::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_rel_path_2() { xpathgeneric::generic_rel_path_2::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_fncall_string() { xpathgeneric::generic_fncall_string::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] #[should_panic] fn xpath_fncall_current_1() { xpathgeneric::generic_fncall_current_1::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_fncall_current_2() { xpathgeneric::generic_fncall_current_2::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_fncall_current_3() { xpathgeneric::generic_fncall_current_3::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_fncall_concat() { xpathgeneric::generic_fncall_concat::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_fncall_startswith_pos() { xpathgeneric::generic_fncall_startswith_pos::( smite::make_empty_doc, smite::make_sd, ) .expect("test failed") } #[test] fn xpath_fncall_startswith_neg() { xpathgeneric::generic_fncall_startswith_neg::( smite::make_empty_doc, smite::make_sd, ) .expect("test failed") } #[test] fn xpath_fncall_contains_pos() { xpathgeneric::generic_fncall_contains_pos::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_fncall_contains_neg() { xpathgeneric::generic_fncall_contains_neg::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_fncall_substring_2arg() { xpathgeneric::generic_fncall_substring_2arg::( smite::make_empty_doc, smite::make_sd, ) .expect("test failed") } #[test] fn xpath_fncall_substring_3arg() { xpathgeneric::generic_fncall_substring_3arg::( smite::make_empty_doc, smite::make_sd, ) .expect("test failed") } #[test] fn xpath_fncall_substringbefore_pos() { xpathgeneric::generic_fncall_substringbefore_pos::( smite::make_empty_doc, smite::make_sd, ) .expect("test failed") } #[test] fn xpath_fncall_substringbefore_neg() { xpathgeneric::generic_fncall_substringbefore_neg::( smite::make_empty_doc, smite::make_sd, ) .expect("test failed") } #[test] fn xpath_fncall_substringafter_pos_1() { xpathgeneric::generic_fncall_substringafter_pos_1::( smite::make_empty_doc, smite::make_sd, ) .expect("test failed") } #[test] fn xpath_fncall_substringafter_pos_2() { xpathgeneric::generic_fncall_substringafter_pos_2::( smite::make_empty_doc, smite::make_sd, ) .expect("test failed") } #[test] fn xpath_fncall_substringafter_neg() { xpathgeneric::generic_fncall_substringafter_neg::( smite::make_empty_doc, smite::make_sd, ) .expect("test failed") } #[test] fn xpath_fncall_normalizespace() { xpathgeneric::generic_fncall_normalizespace::( smite::make_empty_doc, smite::make_sd, ) .expect("test failed") } #[test] fn xpath_fncall_translate() { xpathgeneric::generic_fncall_translate::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_fncall_boolean_true() { xpathgeneric::generic_fncall_boolean_true::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_fncall_boolean_false() { xpathgeneric::generic_fncall_boolean_false::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_fncall_not_true() { xpathgeneric::generic_fncall_not_true::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_fncall_not_false() { xpathgeneric::generic_fncall_not_false::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_fncall_true() { xpathgeneric::generic_fncall_true::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_fncall_false() { xpathgeneric::generic_fncall_false::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_fncall_number_int() { xpathgeneric::generic_fncall_number_int::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_fncall_number_double() { xpathgeneric::generic_fncall_number_double::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_fncall_sum() { xpathgeneric::generic_fncall_sum::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_fncall_avg() { xpathgeneric::generic_fncall_avg::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_fncall_min() { xpathgeneric::generic_fncall_min::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_fncall_max() { xpathgeneric::generic_fncall_max::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_fncall_floor() { xpathgeneric::generic_fncall_floor::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_fncall_ceiling() { xpathgeneric::generic_fncall_ceiling::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_fncall_round_down() { xpathgeneric::generic_fncall_round_down::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_fncall_round_up() { xpathgeneric::generic_fncall_round_up::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_fncall_count_1() { xpathgeneric::generic_fncall_count_1::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_fncall_count_2() { xpathgeneric::generic_fncall_count_2::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_fncall_user_defined() { xpathgeneric::generic_fncall_user_defined::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_let_1() { xpathgeneric::generic_let_1::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_let_2() { xpathgeneric::generic_let_2::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_for_1() { xpathgeneric::generic_for_1::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_for_2() { xpathgeneric::generic_for_2::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_if_1() { xpathgeneric::generic_if_1::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_if_2() { xpathgeneric::generic_if_2::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_sys_prop_vers_qual() { xpathgeneric::generic_sys_prop_vers_qual::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_sys_prop_product_vers() { xpathgeneric::generic_sys_prop_product_vers::( smite::make_empty_doc, smite::make_sd, ) .expect("test failed") } #[test] fn xpath_key_1() { xpathgeneric::generic_key_1::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_format_number_1() { xpathgeneric::generic_format_number_1::(smite::make_empty_doc, smite::make_sd) .expect("test failed") } #[test] fn xpath_document_1() { xpathgeneric::generic_document_1::( smite::make_empty_doc, smite::make_sd, smite::make_from_str, ) .expect("test failed") }