Skip to content

Commit 5793b7e

Browse files
committed
Check parsing result in SyntaxViolation test
1 parent 0659871 commit 5793b7e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

url/tests/unit.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,8 @@ fn test_syntax_violation_callback_types() {
806806
let violation = Cell::new(None);
807807
Url::options()
808808
.syntax_violation_callback(Some(&|v| violation.set(Some(v))))
809-
.parse(test_case.0);
809+
.parse(test_case.0)
810+
.unwrap();
810811

811812
let v = violation.take();
812813
assert_eq!(v, Some(test_case.1));

0 commit comments

Comments
 (0)