Remove try/with from Path unit tests

This commit is contained in:
Rudi Grinberg 2018-05-12 22:31:20 +07:00
parent bc19e14b35
commit dc3310c3a0
1 changed files with 2 additions and 3 deletions

View File

@ -210,10 +210,9 @@ Path.is_local (Path.absolute "relative/path")
- : bool = false
|}]
try Ok (Path.insert_after_build_dir_exn Path.root "foobar")
with e -> Error e
Path.insert_after_build_dir_exn Path.root "foobar"
[%%expect{|
- : (Stdune.Path.t, exn) Stdune.result = Error (Stdune__Exn.Code_error _)
Exception: Stdune__Exn.Code_error <abstr>.
|}]
Path.insert_after_build_dir_exn Path.build_dir "foobar"