Home
last modified time | relevance | path

Searched refs:no_base_url (Results 1 – 1 of 1) sorted by relevance

/external/rust/crates/url/tests/
Dunit.rs614 let mut no_base_url = Url::parse("mailto:test@example.net").unwrap(); in test_no_base_url() localVariable
616 assert!(no_base_url.cannot_be_a_base()); in test_no_base_url()
617 assert!(no_base_url.path_segments().is_none()); in test_no_base_url()
618 assert!(no_base_url.path_segments_mut().is_err()); in test_no_base_url()
619 assert!(no_base_url.set_host(Some("foo")).is_err()); in test_no_base_url()
620 assert!(no_base_url in test_no_base_url()
624 no_base_url.set_path("/foo"); in test_no_base_url()
625 assert_eq!(no_base_url.path(), "%2Ffoo"); in test_no_base_url()