fn formatted_urls_with_postslash_and_extensions() {
        let config = Configuration {
            add_slash: true,
            extensions: vec!["rocks".to_string(), "fun".to_string()],
            ..Default::default()
        };
        let handles = Arc::new(Handles::for_testing(None, Some(Arc::new(config))).0);
        let url = FeroxUrl::from_string("http://localhost", handles);
        match url.formatted_urls("ferox") {
            Ok(urls) => {
                // 3 = One for the main word + slash and for the two extensions
                assert_eq!(urls.len(), 3);
                assert_eq!(
                    urls,
                    [
                        Url::parse("http://localhost/ferox/").unwrap(),
                        Url::parse("http://localhost/ferox.rocks").unwrap(),
                        Url::parse("http://localhost/ferox.fun").unwrap(),
                    ]
                )
            }
            Err(err) => panic!("{}", err.to_string()),
        }
    }
/// sending url + word with both an extension and add-slash should get back
/// two urls, one with '/' appended to the word, and the other with the extension
/// appended
sending url + word with both an extension and add-slash should get back
two urls, one with '/' appended to the word, and the other with the extension
appended
sending url + word with both an extension and add - slash should get back two urls one with ' / ' appended to the word and the other with the extension appended
fn formatted_urls_with_postslash_and_extensions() {
        let config = Configuration {
            add_slash: true,
            extensions: vec!["rocks".to_string(), "fun".to_string()],
            ..Default::default()
        };
        let handles = Arc::new(Handles::for_testing(None, Some(Arc::new(config))).0);
        let url = FeroxUrl::from_string("http://localhost", handles);
        match url.formatted_urls("ferox") {
            Ok(urls) => {
                // 3 = One for the main word + slash and for the two extensions
                assert_eq!(urls.len(), 3);
                assert_eq!(
                    urls,
                    [
                        Url::parse("http://localhost/ferox/").unwrap(),
                        Url::parse("http://localhost/ferox.rocks").unwrap(),
                        Url::parse("http://localhost/ferox.fun").unwrap(),
                    ]
                )
            }
            Err(err) => panic!("{}", err.to_string()),
        }
    }
fn formatted_urls_with_postslash_and_extensions ( ) { let config = Configuration { add_slash : true , extensions : vec ! [ " " to_string ( ) " " to_string ( ) ] , .. Default :: default ( ) } ; let handles = Arc :: new ( Handles :: for_testing ( None , Some ( Arc :: new ( config ) ) ) . 0 ) ; let url = FeroxUrl :: from_string ( " " , handles ) ; match url . formatted_urls ( " " ) { Ok ( urls ) => { // 3 = One for the main word + slash and for the two extensions assert_eq ! ( urls len ( ) 3 ) ; assert_eq ! ( urls [ Url parse ( " " ) unwrap ( ) Url parse ( " " ) unwrap ( ) Url parse ( " " ) unwrap ( ) ] ) } Err ( err ) => panic ! ( " " err to_string ( ) ) , } }
sending url + word with both an extension and add-slash should get back
two urls, one with '/' appended to the word, and the other with the extension
appended
sending url + word with both an extension and add - slash should get back two urls one with ' / ' appended to the word and the other with the extension appended