You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
typesetting/pitfall/restructure/helper.rkt

11 lines
401 B
Racket

#lang racket/base
8 years ago
(require (for-syntax racket/base br/syntax) racket/class br/define "base.rkt")
(provide (all-defined-out) (all-from-out "base.rkt"))
8 years ago
(define-macro (test-module . EXPRS)
#`(module+ test
(require #,(datum->syntax caller-stx 'rackunit) #,(datum->syntax caller-stx 'racket/serialize))
8 years ago
. EXPRS))
(define index? (λ (x) (and (number? x) (integer? x) (not (negative? x)))))