Skip to content

Commit

Permalink
Don't defer compile-time errors in check-expect.
Browse files Browse the repository at this point in the history
(Nobody seems to remember why this was so.)

Fixes #153.
  • Loading branch information
mikesperber committed Sep 9, 2024
1 parent 29e1c78 commit d701105
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions htdp-lib/test-engine/syntax.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
(syntax-column stx)
(syntax-position stx)
(syntax-span stx)))))
(define test-expr-checked-for-syntax-error #`(convert-compile-time-error #,test-expr))
(if (eq? 'module (syntax-local-context))
#`(define #,bogus-name
#,(stepper-syntax-property
Expand All @@ -49,7 +48,7 @@
['stepper-use-val-as-final #t])
(quasisyntax/loc stx
(#,checker-proc-stx
(lambda () #,test-expr-checked-for-syntax-error)
(lambda () #,test-expr)
#,@embedded-stxes
#,src-info)))))
'stepper-skipto
Expand All @@ -65,7 +64,7 @@
['stepper-use-val-as-final #t])
(quasisyntax/loc stx
(#,checker-proc-stx
(lambda () #,test-expr-checked-for-syntax-error)
(lambda () #,test-expr)
#,@embedded-stxes
#,src-info)))))))

Expand Down

0 comments on commit d701105

Please sign in to comment.