-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #361 - servo:percent-encoding-docs, r=SimonSapin,nox
Percent encoding docs Fixes #298, fixes #355. This is a rebase of #355 with some additional changes. Original work by @AndyGauge. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-url/361) <!-- Reviewable:end -->
- Loading branch information
Showing
2 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
* 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"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters