Re: [racket] rackunit question

2013-12-22 Thread Manfred Lotz
On Sat, 21 Dec 2013 23:18:02 -0800 Evan Donahue wrote: > check out the main submodule. > Thanks a lot. That does it nicely. -- Manfred > > On Sat, Dec 21, 2013 at 10:47 PM, Manfred Lotz > wrote: > > > Hi there, > > In a small program I like to have the test cases in the same file. > >

Re: [racket] rackunit question

2013-12-21 Thread Evan Donahue
check out the main submodule. On Sat, Dec 21, 2013 at 10:47 PM, Manfred Lotz wrote: > Hi there, > In a small program I like to have the test cases in the same file. How > can I prevent the 'main' function of my program to be run when I do a > raco test? > > > Here is a minimal example: > > #lang

[racket] rackunit question

2013-12-21 Thread Manfred Lotz
Hi there, In a small program I like to have the test cases in the same file. How can I prevent the 'main' function of my program to be run when I do a raco test? Here is a minimal example: #lang racket (define (myfun) (displayln "hey")) (myfun) (module+ test (require rackunit) (