diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 18:31:44 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 18:31:44 +0000 |
commit | c23a457e72abe608715ac76f076f47dc42af07a5 (patch) | |
tree | 2772049aaf84b5c9d0ed12ec8d86812f7a7904b6 /vendor/url/tests/unit.rs | |
parent | Releasing progress-linux version 1.73.0+dfsg1-1~progress7.99u1. (diff) | |
download | rustc-c23a457e72abe608715ac76f076f47dc42af07a5.tar.xz rustc-c23a457e72abe608715ac76f076f47dc42af07a5.zip |
Merging upstream version 1.74.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/url/tests/unit.rs')
-rw-r--r-- | vendor/url/tests/unit.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/vendor/url/tests/unit.rs b/vendor/url/tests/unit.rs index 6cb0f37fe..c27f237ba 100644 --- a/vendor/url/tests/unit.rs +++ b/vendor/url/tests/unit.rs @@ -472,7 +472,7 @@ fn append_trailing_slash() { fn extend_query_pairs_then_mutate() { let mut url: Url = "http://localhost:6767/foo/bar".parse().unwrap(); url.query_pairs_mut() - .extend_pairs(vec![("auth", "my-token")].into_iter()); + .extend_pairs(vec![("auth", "my-token")]); url.check_invariants().unwrap(); assert_eq!( url.to_string(), @@ -1298,3 +1298,11 @@ fn test_file_with_drive_and_path() { let url2 = url::Url::join(&url, s2).unwrap(); assert_eq!(url2.to_string(), "file:///p:/a"); } + +#[test] +fn issue_864() { + let mut url = url::Url::parse("file://").unwrap(); + dbg!(&url); + url.set_path("x"); + dbg!(&url); +} |