>
> Adding to the suggestions, you can write something like `test-internal`
> and `test-external` submodules plus
>
>  (module+ test
>    (require (submod ".." test-internal)
>             (submod ".." test-external)))
>


Enlightenment achieved




>
> At Fri, 22 May 2015 15:23:33 -0400, Matthias Felleisen wrote:
> >
> > DOn't forget
> >
> >  $ raco test --submoulde matthew-s-tests
> >
> >
> > On May 22, 2015, at 3:12 PM, Matthew Butterick <m...@mbtype.com> wrote:
> >
> > > Has this been an oversight? Do we need two "official" test submodules?
> > > One from the inside, and one from without.
> > >
> > > That’s a worthy point. I prefer to locate tests as close as possible
> to the
> > code being tested. But the fact that 'raco test ...' and DrRacket only
> > recognize a single submodule named 'test' means that internal & external
> tests
> > must be separated (because you can’t have two submodules with the same
> name).
> > >
> > > Perhaps it would be worthwhile for raco & DrRacket to recognize not
> just
> > 'test', but any submodule named 'test-*', so that multiple testing
> submodules
> > can live together in peace and cooperation:
> > >
> > > #lang racket
> > >
> > > (define (add1 x y)
> > >   (integer? integer? . -> . integer?)
> > >   (+ x y))
> > >
> > > (provide (contract-out [add1 (integer? integer? . -> . integer?)]))
> > >
> > > (module* test-external racket
> > >   (require (submod ".."))
> > >   (require rackunit)
> > >   (check-exn exn:fail? (λ _ (add1 3 3))))
> > >
> > > (module+ test-internal
> > >   (require rackunit)
> > >   (check-equal? (add1 4.5 4.5) 7.0))
> > >
> > >
> > > On Fri, May 22, 2015 at 11:37 AM, Anthony Carrico <
> acarr...@memebeam.org>
> > wrote:
> > > Has this been an oversight? Do we need two "official" test submodules?
> > > One from the inside, and one from without.
> > >
> > > --
> > > Anthony Carrico
> > >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > "Racket Users" group.
> > > To unsubscribe from this group and stop receiving emails from it, send
> an
> > email to racket-users+unsubscr...@googlegroups.com.
> > > For more options, visit https://groups.google.com/d/optout.
> > >
> > >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > "Racket Users" group.
> > > To unsubscribe from this group and stop receiving emails from it, send
> an
> > email to racket-users+unsubscr...@googlegroups.com.
> > > For more options, visit https://groups.google.com/d/optout.
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Racket Users" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email
> > to racket-users+unsubscr...@googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to