fn format_url_word_with_two_prepended_slashes_and_extensions() {
        let handles = Arc::new(Handles::for_testing(None, None).0);
        let url = FeroxUrl::from_string("http://localhost", handles);
        for ext in ["rocks", "fun"] {
            let to_check = format!("http://localhost/upload/ferox.{}", ext);
            assert_eq!(
                url.format("//upload/ferox", Some(ext)).unwrap(),
                reqwest::Url::parse(&to_check[..]).unwrap()
            );
        }
    }
/// word with two prepended slashes and extensions doesn't discard the entire domain
word with two prepended slashes and extensions doesn't discard the entire domain
word with two prepended slashes and extensions doesn ' t discard the entire domain
fn format_url_word_with_two_prepended_slashes_and_extensions() {
        let handles = Arc::new(Handles::for_testing(None, None).0);
        let url = FeroxUrl::from_string("http://localhost", handles);
        for ext in ["rocks", "fun"] {
            let to_check = format!("http://localhost/upload/ferox.{}", ext);
            assert_eq!(
                url.format("//upload/ferox", Some(ext)).unwrap(),
                reqwest::Url::parse(&to_check[..]).unwrap()
            );
        }
    }
fn format_url_word_with_two_prepended_slashes_and_extensions ( ) { let handles = Arc :: new ( Handles :: for_testing ( None , None ) . 0 ) ; let url = FeroxUrl :: from_string ( " " , handles ) ; for ext in [ " " , " " ] { let to_check = format ! ( " " ext ) ; assert_eq ! ( url format ( " " Some ( ext ) ) unwrap ( ) reqwest Url parse ( to_check [ ] ) unwrap ( ) ) ; } }
word with two prepended slashes and extensions doesn't discard the entire domain
word with two prepended slashes and extensions doesn ' t discard the entire domain