Disable test which needs convert-compile-time-error in Racket < 6.3
This commit is contained in:
parent
cac2bf9928
commit
3244170cca
|
@ -1,8 +1,18 @@
|
||||||
#lang racket
|
#lang racket
|
||||||
|
|
||||||
|
(require (for-syntax racket))
|
||||||
|
(define-syntax (when-≥-6.3 stx)
|
||||||
|
(syntax-case stx ()
|
||||||
|
[(_ . body)
|
||||||
|
(if (let ([v (map string->number (string-split (version) "."))])
|
||||||
|
(and (>= (first v) 6) (>= (second v) 3)))
|
||||||
|
(syntax/loc stx (begin . body))
|
||||||
|
(syntax/loc stx (begin)))]))
|
||||||
|
|
||||||
|
(when-≥-6.3
|
||||||
(require anaphoric/it
|
(require anaphoric/it
|
||||||
rackunit
|
rackunit
|
||||||
syntax/macro-testing)
|
syntax/macro-testing)
|
||||||
|
|
||||||
(check-exn #rx"Use of the \"it\" identifier is only allowed within anaphoric macros\\."
|
(check-exn #rx"Use of the \"it\" identifier is only allowed within anaphoric macros\\."
|
||||||
(lambda () (convert-compile-time-error it)))
|
(lambda () (convert-compile-time-error it))))
|
Loading…
Reference in New Issue
Block a user