rust-url-todo 351 B

1234567891011121314
  1. * standalone path parsing?
  2. * Test setters
  3. * Test trim C0/space
  4. * Test remove tab & newline
  5. #[test]
  6. fn test_path_segments() {
  7. let mut url = Url::parse("http://example.net").unwrap();
  8. url.push_path_segment("foo").unwrap();
  9. url.extend_path_segments(&["bar", "b/az"]).unwrap();
  10. assert_eq!(url.as_str(), "http://example.net/foo");
  11. }