diff --git a/test/test.ml b/test/test.ml index e46eaca..4455f8a 100644 --- a/test/test.ml +++ b/test/test.ml @@ -5,6 +5,10 @@ let map_option f = function | None -> None | Some v -> Some (f v) +let unwrap_option = function + | None -> failwith "trying to unwrap a None" + | Some v -> v + let page : string -> string = let table = Hashtbl.create 7 in @@ -342,7 +346,7 @@ let suites = [ ("matches-selector" >:: fun _ -> let soup = parse "
bar