We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5dcb5b7 commit cfe75b9Copy full SHA for cfe75b9
tests/unit.rs
@@ -493,3 +493,13 @@ fn test_log_syntax_violation_option() {
493
let violation = violation.take();
494
assert_eq!(violation, Some("expected //".to_string()));
495
}
496
+
497
+#[test]
498
+fn test_options_reuse() {
499
+ let options = Url::options();
500
+ let url = options.parse("http:////mozilla.org").unwrap();
501
502
+ let options = options.base_url(Some(&url));
503
+ let url = options.parse("/sub\\path").unwrap();
504
+ assert_eq!(url.as_str(), "http://mozilla.org/sub/path");
505
+}
0 commit comments