[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#602298: [libounit-ocaml-dev] force "unit" return type in OUnit.bracket for typesafety



forwarded 602298 https://forge.ocamlcore.org/tracker/index.php?func=detail&aid=799&group_id=162&atid=732

thanks

Hello,

On Wed, Nov 03, 2010 at 03:13:20PM +0100, Joost Yervante Damad wrote:
> Package: libounit-ocaml-dev
> Version: 1.0.3-5.0.2

What a strange version number? Did you recompile it yourself?

> Severity: wishlist
> Tags: patch
> 
> --- Please enter the report below this line. ---
> 
> It would be useful to make return value of the testfunction f and teardown in 
> OUnit.bracket "unit" to enforce typing to avoid accidentally returning a 
> monadic type causing partial execution of a testcase. (e.g. when using Lwt)
> 
> See attached patch for a proposed solution.
> 

I thought about it while I release OUnit 1.1.0. It will probably make it
into 1.2.0.

Cheers
Sylvain Le Gall





Reply to: