We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebd789f commit 4b5a422Copy full SHA for 4b5a422
fuzz/fuzzers/parse.rs
@@ -5,6 +5,9 @@ use std::str;
5
6
fuzz_target!(|data: &[u8]| {
7
if let Ok(utf8) = str::from_utf8(data) {
8
- let _ = url::Url::parse(utf8);
+ if let Ok(parsed) = url::Url::parse(utf8) {
9
+ let as_str = parsed.as_str();
10
+ assert_eq!(parsed, url::Url::parse(as_str).unwrap());
11
+ }
12
}
13
});
0 commit comments