Well, it does kinda work in the REPL. If you use check-expect in the REPL, then use (test), it will display the results for running the check forms declared _in_ the REPL, just not the ones in the source. It just seems to start with a clean slate.
On Sun, Sep 18, 2011 at 9:29 PM, Stephen Bloch <sbl...@adelphi.edu> wrote: > > On Sep 18, 2011, at 9:22 PM, Luke Vilnis wrote: > > Thanks guys, that works! Still, it's pretty confusing that running (test)from > the repl does not work, only inserting it at the end of the file. It > would be nice to mention that in the docs, something like: > > "Note that the check forms only register checks to be performed. The > checks are actually run by the test function." > > => > > "Note that the check forms only register checks to be performed. The > checks are actually run by the test function, which should be called at > the end of the file. Using test in the REPL will not run check forms > declared in the definitions." > > > An even better answer would be for "test" to WORK in the REPL. I hadn't > noticed that it doesn't (although I haven't used test-engine/racket-tests > very much). Can somebody who knows explain in small words why it doesn't? > > > > Stephen Bloch > sbl...@adelphi.edu >
_________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users