File: expect_test.ml

package info (click to toggle)
ocamlformat 0.28.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,436 kB
  • sloc: ml: 63,321; pascal: 4,769; lisp: 229; sh: 217; makefile: 121
file content (25 lines) | stat: -rw-r--r-- 808 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
let%expect_test _ = e

let%bench "test" = fun () -> ()

let%expect_test _ =
  assert false ;
  [%expect.unreachable]
[@@expect.uncaught_exn
  {|
      (* CR expect_test_collector: This test expectation appears to contain a backtrace.
         This is strongly discouraged as backtraces are fragile.
         Please change this test to not include a backtrace. *)

      "Assert_failure test.ml:5:6"
      Raised at file "test.ml", line 4, characters 6-18
      Called from file "collector/expect_test_collector.ml", line 225, characters 12-19 |}]

let _ =
  assert false ;
  [%expect.unreachable]
[@@expect.uncaught_exn
  {|
      "Assert_failure test.ml:5:6"
      Raised at file "test.ml", line 4, characters 6-18
      Called from file "collector/expect_test_collector.ml", line 225, characters 12-19 |}]