File: missing.ml.corrected.expected

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 (27 lines) | stat: -rw-r--r-- 420 bytes parent folder | download | duplicates (2)
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
26
27
open! Core

(* Example with no [%expect] node at all *)

let%expect_test _ =
  print_string "hello\n";
  print_string "goodbye\n";
  [%expect
    {|
    hello
    goodbye
    |}]
;;

(* Example with an [%expect] node that has no payload *)

let%expect_test _ =
  print_string "hello\n";
  print_string "goodbye\n";
  [%expect
    {|
    hello
    goodbye
    |}];
  ignore ("don't print" : string);
  [%expect {| |}]
;;