To run tests like those with check-expect
, your .rkt
file must start with:
#lang htdp/bsl
or
#reader(lib "htdp-beginner-reader.ss" "lang")((modname area-tests) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f)))
But not both.
Then, from racket-mode
, do C-c C-t
(racket-test
) and be happy. From the command line,
raco test file.rkt
Thanks to @lexi-lambda in #racket. He refused to change his nick to lexi-λ as I suggested, though.
Thanks for this!
#lang
syntax for HTDP seems to have no record on the Racket docs, so to include intermediate and advanced: