gildor478 / ounit

Other
88 stars 18 forks source link

example is wrong #56

Closed gildor478 closed 3 years ago

gildor478 commented 3 years ago

This bug has been migrated from artifact #1356 on forge.ocamlcore.org. It was assigned to user102. It was closed on 2019-09-27 14:02:13.

user116 posted on 2013-12-02 08:31:01:

In the following code (from the ocamldoc comments) :

open OUnit2;;

let my_program = Conf.make_exec "my_program" ;;

let test1 test_ctxt = assert_command (my_program test_ctxt) [] ;;

let () = run_test_tt_main ("test1" >:: test1) ;;

assert_command should take named ctxt parameter

user102 replied on 2019-09-27 14:02:13:

This has been fixed by rewriting the example: https://github.com/gildor478/ounit/commit/79170b22e7d9f6797fd95813fb899b57cb92e6e6#diff-bfebe34154a0dfd9fc7b447fc9ed74e9