Re-enabled tests in type-expander.lp2.rkt, and fixed check-equal?:, which was ignoring the : Type.
This commit is contained in:
parent
63e8d17f53
commit
4dd0a08dbf
|
@ -249,7 +249,8 @@
|
||||||
(make-check-expression '#,(syntax->datum stx)))
|
(make-check-expression '#,(syntax->datum stx)))
|
||||||
(λ ()
|
(λ ()
|
||||||
(untyped:check-true
|
(untyped:check-true
|
||||||
(equal? actual expected))))))
|
(equal? (?? (ann actual type) actual)
|
||||||
|
expected))))))
|
||||||
|
|
||||||
(define-syntax/parse
|
(define-syntax/parse
|
||||||
(check-not-equal?: actual
|
(check-not-equal?: actual
|
||||||
|
@ -270,7 +271,8 @@
|
||||||
(make-check-expression '#,(syntax->datum stx)))
|
(make-check-expression '#,(syntax->datum stx)))
|
||||||
(λ ()
|
(λ ()
|
||||||
(untyped:check-true
|
(untyped:check-true
|
||||||
(not (equal? actual expected))))))))
|
(not (equal? (?? (ann actual type) actual)
|
||||||
|
expected))))))))
|
||||||
|
|
||||||
(require/provide 'my-typed-rackunit)
|
(require/provide 'my-typed-rackunit)
|
||||||
|
|
||||||
|
|
|
@ -1084,22 +1084,18 @@ And, last but not least, we will add a @tc[test] module.
|
||||||
|
|
||||||
<test-expand-type>
|
<test-expand-type>
|
||||||
|
|
||||||
#|
|
|
||||||
<test-:>
|
<test-:>
|
||||||
<test-define-type>
|
<test-define-type>
|
||||||
<test-define>
|
<test-define>
|
||||||
<test-lambda>
|
<test-lambda>
|
||||||
|#
|
<test-struct>
|
||||||
;<test-struct>
|
|
||||||
<test-define-struct/exec>
|
<test-define-struct/exec>
|
||||||
#|
|
|
||||||
<test-ann>
|
<test-ann>
|
||||||
<test-inst>
|
<test-inst>
|
||||||
<test-let>
|
<test-let>
|
||||||
<test-let*>
|
<test-let*>
|
||||||
<test-let-values>
|
<test-let-values>
|
||||||
<test-make-predicate>
|
<test-make-predicate>)]
|
||||||
|#)]
|
|
||||||
|
|
||||||
We can now assemble the modules in this order:
|
We can now assemble the modules in this order:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user