• Home
  • Raw
  • Download

Lines Matching refs:as_str

27     assert_eq!(url.as_str(), "sc://%C3%B1/resources/testharness.js");  in test_relative()
34 assert_eq!(url.as_str(), "sc://%C3%B1"); in test_relative_empty()
41 assert_eq!(base.as_str(), "moz://:bar@servo/baz"); in test_set_empty_host()
43 assert_eq!(base.as_str(), "moz:/baz"); in test_set_empty_host()
45 assert_eq!(base.as_str(), "moz://servo/baz"); in test_set_empty_host()
63 assert_eq!(base.as_str(), "moz:///baz"); in test_set_empty_hostname()
160 assert_eq!(special_url.as_str(), "http://foobar.com/foo%5Cbar"); in path_backslash_fun()
164 assert_eq!(nonspecial_url.as_str(), "thing://foobar.com/foo\\bar"); in path_backslash_fun()
181 url.as_str(), in parse_with_params()
334 assert_eq!(url.as_str(), result); in test_serialization()
450 assert_eq!(url.as_str(), "https://foo.com/hello"); in test_set_host()
452 assert_eq!(url.as_str(), "https://foo.com/hello"); in test_set_host()
454 assert_eq!(url.as_str(), "https://foo.com/hello"); in test_set_host()
458 assert_eq!(url.as_str(), "foobar:/hello"); in test_set_host()
461 assert_eq!(url.as_str(), "foo://%C8%99"); in test_set_host()
463 assert_eq!(url.as_str(), "foo://go%C8%99u.ro"); in test_set_host()
730 assert_eq!(url.as_str(), "file://host/share/path/file.txt"); in test_windows_unc_path()
733 assert_eq!(url.as_str(), "file://xn--hst-sna/share/path/file.txt"); in test_windows_unc_path()
743 assert_eq!(url.as_str(), "file://host/share/path/file.txt"); in test_windows_unc_path()
830 assert_eq!(url.as_str(), "http://mozilla.org/sub/path"); in test_options_reuse()
863 assert_eq!(db_url.as_str(), "postgres://postgres@localhost/");
865 assert_eq!(db_url.as_str(), "postgres://postgres@localhost/diesel_foo");
872 assert_eq!(db_url.as_str(), "postgres://postgres@localhost/");
875 assert_eq!(db_url.as_str(), "postgres://postgres@localhost");
878 assert_eq!(db_url.as_str(), "postgres://postgres@localhost/foo");
881 assert_eq!(db_url.as_str(), "postgres://postgres@localhost/bar");
887 assert_eq!(db_url.as_str(), "postgres://postgres@localhost/");
889 assert_eq!(db_url.as_str(), "postgres://postgres@localhost/");
892 assert_eq!(db_url.as_str(), "postgres://postgres@localhost/foo");
1096 base_uri.join(&relative).unwrap().as_str(),