Add test for non-unit check.

svn: r13526
This commit is contained in:
Stevie Strickland 2009-02-12 00:49:56 +00:00
parent 12bbf258df
commit 12110acfe3

View File

@ -592,4 +592,10 @@
(unit/c (import) (export))
(unit (import sig1) (export) (+ x 1)))
bad-import@))
(test-runtime-error exn:fail:contract? "value is not a unit"
(let ()
(define/contract not-a-unit
(unit/c (import) (export))
3)
not-a-unit))