On Apr 26, 2015, at 3:13 PM, Alexander D. Knauth wrote: > > On Apr 26, 2015, at 2:39 PM, Matthias Felleisen <matth...@ccs.neu.edu> wrote: > >> >> On Apr 26, 2015, at 9:18 AM, Alexander D. Knauth wrote: >> >>> I wanted to see if it could work for tests within (module+ test …), and it >>> does (even though check-expect doesn’t, which is weird for check-expect but >>> awesome for this) >> >> >> Keep in mind that check-expect is supposed to work well for BSL, which is >> for students who never programmed before. > > I know, but what’s weird about it is that without racketeer, the error > message says: > . check-expect: found a test that is not at the top level in: (check-expect 1 > 2) > When the check-expect form is at the top level of the test submodule: > #lang racket > (require test-engine/racket-tests) > (module* test #f > (check-expect 1 2)) > And also that it works when the require form is inside the (module* test #f > …) body: > #lang racket > (module* test #f > (require test-engine/racket-tests) > (check-expect 1 2) > (test)) > Why would it work for the second one but not the first one, and why would it > give that error message? That’s what I thought was weird.
Ah, I bet it has to do with how test-engine tests for "top-levelness" in module. -- 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.