next|prev|index

8. Example 2

See testsuite/typing-extension-constructor/test.ml, a toplevel test whose test description looks like this:

(* TEST
  * toplevel
*)

The ``*'' character means that what follows is the name of a test or action.

The ``toplevel'' test is defined in ocamltest/builtin_tests.ml as follows:

let toplevel = {
  test_name = "toplevel";
  test_run_by_default = false;
  test_actions = [
    run_in_ocaml; check_ocaml_output;
    (* run_in_ocamlnat; check_ocamlnat_output; *) ] }