third_party/rust/url/rust-url-todo
author Manish Goregaokar <manishearth@gmail.com>
Thu, 20 Oct 2016 00:07:59 +0530
changeset 320079 62f38c70d152bbd94d617ecf64b76453bc5f57c3
permissions -rw-r--r--
Bug 1151899 - Vendor rust-url-capi deps; r=valentin,ted MozReview-Commit-ID: FVn6c6ol36V

* standalone path parsing?
* Test setters
  * Test trim C0/space
  * Test remove tab & newline



#[test]
fn test_path_segments() {
    let mut url = Url::parse("http://example.net").unwrap();
    url.push_path_segment("foo").unwrap();
    url.extend_path_segments(&["bar", "b/az"]).unwrap();
    assert_eq!(url.as_str(), "http://example.net/foo");
}