Skip to content

Commit

Permalink
Non special urls don't have to have a path anymore. Updated the test …
Browse files Browse the repository at this point in the history
…to reflect it.
  • Loading branch information
o0Ignition0o committed Aug 3, 2019
1 parent 4018195 commit f3fbe89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,9 +413,9 @@ fn test_set_host() {
assert_eq!(url.as_str(), "foobar:/hello");

let mut url = Url::parse("foo://ș").unwrap();
assert_eq!(url.as_str(), "foo://%C8%99/");
assert_eq!(url.as_str(), "foo://%C8%99");
url.set_host(Some("goșu.ro")).unwrap();
assert_eq!(url.as_str(), "foo://go%C8%99u.ro/");
assert_eq!(url.as_str(), "foo://go%C8%99u.ro");
}

#[test]
Expand Down

0 comments on commit f3fbe89

Please sign in to comment.