Contracts raise exceptions when they fail, so check that the raise an
exn (use check-exn) when you expect them to raise an exception, and
that they don't raise an exn (check-not-exn) when you don't expect
them to.

HTH,
N.

On Tue, Jun 21, 2011 at 12:19 AM, Eduardo Bellani <ebell...@gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello list.
>
> I have a small set of contracts that I am thinking of turning into a
> planet package so I can use them across projects. My problem is, how do
> I use the rackunit framework to test them?
_________________________________________________
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/users

Reply via email to