This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
15
unikernel/duniverse/base/test/test_exn.ml
Normal file
15
unikernel/duniverse/base/test/test_exn.ml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
open! Import
|
||||
open! Exn
|
||||
|
||||
let%expect_test "[create_s]" =
|
||||
print_s [%sexp (create_s [%message "foo"] : t)];
|
||||
[%expect {| foo |}];
|
||||
print_s [%sexp (create_s [%message "foo" "bar"] : t)];
|
||||
[%expect {| (foo bar) |}];
|
||||
let sexp = [%message "foo"] in
|
||||
print_s [%sexp (phys_equal sexp (sexp_of_t (create_s sexp)) : bool)];
|
||||
[%expect {| true |}]
|
||||
;;
|
||||
|
||||
let%test _ = not (does_raise Fn.ignore)
|
||||
let%test _ = does_raise (fun () -> failwith "foo")
|
||||
Loading…
Add table
Add a link
Reference in a new issue