[racket] Getting test-engine to work with #lang racket

From: Luke Vilnis (lvilnis at gmail.com)
Date: Sun Sep 18 20:21:49 EDT 2011

Hi everybody,
I was wondering how to get test-engine working with #lang, or non-student
languages in general. I tried something like this:

#lang racket
(require test-engine/racket-tests)
(check-expect 12 (+ 6 7)) ;;sic

But no luck. I also tried it with (require test-engine/racket-gui), but I'm
guessing I must be missing something really basic here because I can't even
get it to work textually. I type (run-tests), (test), (display-results),
pretty much anything I can think of at the repl, and I get nothing. It's as
if all my output is going to some hidden buffer somewhere. It works fine
(sans the require) using HTDP languages, so I don't think it's a problem
with my install.

I tried poking around in the source to see what's going on, but I couldn't
figure out anything quickly. It looks like htdp langs are initializing some
test-engine namespace variable in their module definition, but I have no
idea what that would mean for getting it to work in regular old racket.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20110918/650c96dc/attachment.html>

Posted on the users mailing list.