Skip to content

Commit f3fbe89

Browse files
committed
Non special urls don't have to have a path anymore. Updated the test to reflect it.
1 parent 4018195 commit f3fbe89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -413,9 +413,9 @@ fn test_set_host() {
413413
assert_eq!(url.as_str(), "foobar:/hello");
414414

415415
let mut url = Url::parse("foo://ș").unwrap();
416-
assert_eq!(url.as_str(), "foo://%C8%99/");
416+
assert_eq!(url.as_str(), "foo://%C8%99");
417417
url.set_host(Some("goșu.ro")).unwrap();
418-
assert_eq!(url.as_str(), "foo://go%C8%99u.ro/");
418+
assert_eq!(url.as_str(), "foo://go%C8%99u.ro");
419419
}
420420

421421
#[test]

0 commit comments

Comments
 (0)