Re: [racket] plai test/exn

2011-09-19 Thread Eric Dobson
I found it immediately by searching for error on docs.racket-lang.org, and going to the plai entry. http://docs.racket-lang.org/plai/plai-scheme.html?q=error#(def._((lib._plai/main..rkt)._error)) Is there some other place you would expect it to be? (It does need some scheme->racket cleanup thoug

Re: [racket] plai test/exn

2011-09-19 Thread Jeremy Kun
Ah! Why don't they state that they shadow "error" in the documentation? Isn't that considered bad form? And worse, undocumented bad form! Everything I was taught in school by idealistic Racket programmers is crashing down before my eyes! I might as well be coding in C. But seriously, this should

Re: [racket] plai test/exn

2011-09-19 Thread Jay McCarthy
And that's what it means by "user code" Jay On Tue, Sep 20, 2011 at 6:57 AM, Eric Dobson wrote: > Also IIRC test/exn only works on errors raised using 'error' from > PLAI, which is different from 'error' from racket/base. > > -Eric > > On Mon, Sep 19, 2011 at 2:49 PM, John Clements > wrote: >>

Re: [racket] plai test/exn

2011-09-19 Thread John Clements
On Sep 19, 2011, at 2:57 PM, Eric Dobson wrote: > Also IIRC test/exn only works on errors raised using 'error' from > PLAI, which is different from 'error' from racket/base. Ooh, just saw that this was test/exn, not check/exn. I retract my hasty comment! John > > -Eric > > On Mon, Sep 19,

Re: [racket] plai test/exn

2011-09-19 Thread Eric Dobson
Also IIRC test/exn only works on errors raised using 'error' from PLAI, which is different from 'error' from racket/base. -Eric On Mon, Sep 19, 2011 at 2:49 PM, John Clements wrote: > > On Sep 19, 2011, at 1:47 PM, Jeremy Kun wrote: > >> Not sure if this is a bug, but it doesn't match the docume

Re: [racket] plai test/exn

2011-09-19 Thread John Clements
On Sep 19, 2011, at 1:47 PM, Jeremy Kun wrote: > Not sure if this is a bug, but it doesn't match the documentation here. It > says test/exn only succeeds when the error is explicitly raised by the user, > but I try something as simple as: > > "file1.rkt" > (provide foo) > (define (foo) (error

[racket] plai test/exn

2011-09-19 Thread Jeremy Kun
Not sure if this is a bug, but it doesn't match the documentation here. It says test/exn only succeeds when the error is expli