Add test for non-unit check.
svn: r13526
This commit is contained in:
parent
12bbf258df
commit
12110acfe3
|
@ -593,3 +593,9 @@
|
||||||
(unit (import sig1) (export) (+ x 1)))
|
(unit (import sig1) (export) (+ x 1)))
|
||||||
bad-import@))
|
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))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user