Folks,

I am trying to write a module with scribble/lp, which contains its own
unit tests (for "raco test").

;;----- main.rkt
#lang scribble/lp
@chunk[<*> (module+ test (require rackunit))]
;;----- FIN


Running this, however gives:
$ racket -t main.rkt
main.rkt:2:11: #%module-begin: bad syntax
  in: (#%module-begin (#%require rackunit))
  context...:
   standard-module-name-resolver

Does scribble/lp build modules that behave like typical racket modules?
Or is there something different happening. I note that the scribble/lp
docs don't talk about modules; rather the language used is in terms of
"programs":

When running the program, all of the chunk expressions are collected and
stitched together into a program

What is the situation here?

Regards,

Tim

--
Tim Brown <[email protected]>  | City Computing Limited            |
T: +44 20 8770 2110                | City House, Sutton Park Road      |
F: +44 20 8770 2130                | Sutton, Surrey, SM1 2AE, GB       |
-----------------------------------------------------------------------|
BEAUTY:  What's in your eye when you have a bee in your hand           |
-----------------------------------------------------------------------'
City Computing Limited registered in London No. 1767817.
Registered Office: City House, Sutton Park Road, Sutton, Surrey, SM1 2AE
VAT number 372 8290 34.
____________________
 Racket Users list:
 http://lists.racket-lang.org/users

Reply via email to