Explorar el Código

Check parsing result in SyntaxViolation test

Bram Bonné hace 5 años
padre
commit
5793b7ef14
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      url/tests/unit.rs

+ 2 - 1
url/tests/unit.rs

@@ -806,7 +806,8 @@ fn test_syntax_violation_callback_types() {
         let violation = Cell::new(None);
         Url::options()
             .syntax_violation_callback(Some(&|v| violation.set(Some(v))))
-            .parse(test_case.0);
+            .parse(test_case.0)
+            .unwrap();
 
         let v = violation.take();
         assert_eq!(v, Some(test_case.1));