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.
pollen/pollen/test/test-pollen-mode.rkt

10 lines
413 B
Racket

#lang at-exp racket/base
(require rackunit pollen/setup racket/runtime-path)
;; define-runtime-path only allowed at top level
(define-runtime-path test-dir "data/pollen-mode")
(define-runtime-path test-source "data/pollen-mode/test-pollen-mode.foo")
(parameterize ([current-directory test-dir]
[current-project-root test-dir])
(check-equal? ((dynamic-require test-source 'proc)) "fooXbarXzam"))