fn extractor_get_sub_paths_from_path_with_enclosing_slashes() {
    let path = "/homepage/assets/";
    let r_paths = ROBOTS_EXT.get_sub_paths_from_path(path);
    let b_paths = BODY_EXT.get_sub_paths_from_path(path);
    let expected = vec!["homepage/", "homepage/assets"];

    assert_eq!(r_paths.len(), expected.len());
    assert_eq!(b_paths.len(), expected.len());
    for expected_path in expected {
        assert!(r_paths.contains(&expected_path.to_string()));
        assert!(b_paths.contains(&expected_path.to_string()));
    }
}
/// extract sub paths from the given url fragment; expect 2 sub paths and that all are
/// in the expected array. the fragment is wrapped in slashes to ensure no empty strings are
/// returned
extract sub paths from the given url fragment; expect 2 sub paths and that all are
in the expected array. the fragment is wrapped in slashes to ensure no empty strings are
returned
extract sub paths from the given url fragment ; expect 2 sub paths and that all are in the expected array . the fragment is wrapped in slashes to ensure no empty strings are returned
fn extractor_get_sub_paths_from_path_with_enclosing_slashes() {
    let path = "/homepage/assets/";
    let r_paths = ROBOTS_EXT.get_sub_paths_from_path(path);
    let b_paths = BODY_EXT.get_sub_paths_from_path(path);
    let expected = vec!["homepage/", "homepage/assets"];
    assert_eq!(r_paths.len(), expected.len());
    assert_eq!(b_paths.len(), expected.len());
    for expected_path in expected {
        assert!(r_paths.contains(&expected_path.to_string()));
        assert!(b_paths.contains(&expected_path.to_string()));
    }
}
fn extractor_get_sub_paths_from_path_with_enclosing_slashes ( ) { let path = " " ; let r_paths = ROBOTS_EXT . get_sub_paths_from_path ( path ) ; let b_paths = BODY_EXT . get_sub_paths_from_path ( path ) ; let expected = vec ! [ " " " " ] ; assert_eq ! ( r_paths len ( ) expected len ( ) ) ; assert_eq ! ( b_paths len ( ) expected len ( ) ) ; for expected_path in expected { assert ! ( r_paths contains ( expected_path to_string ( ) ) ) ; assert ! ( b_paths contains ( expected_path to_string ( ) ) ) ; } }
extract sub paths from the given url fragment; expect 2 sub paths and that all are
in the expected array.
extract sub paths from the given url fragment ; expect 2 sub paths and that all are in the expected array .