File: exn_missing.ml

package info (click to toggle)
ppx-expect 0.17.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 948 kB
  • sloc: ml: 3,399; ansic: 104; javascript: 19; makefile: 15; sh: 2
file content (11 lines) | stat: -rw-r--r-- 275 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
open! Core

let%expect_test "without trailing output" =
  printf "hello world";
  [%expect "hello world"]
  [@@expect.uncaught_exn {| (Failure "hi ho") |}]
;;

let%expect_test "with trailing output" = printf "hello world"
  [@@expect.uncaught_exn {| (Failure "hi ho") |}]
;;