[racket] Unit testing of contracts

From: Noel Welsh (noelwelsh at gmail.com)
Date: Tue Jun 21 08:46:41 EDT 2011

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 <ebellani at 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?


Posted on the users mailing list.