[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [plt-scheme] assertions and the learning of macro-fu



--- Don Blaheta <dpb@cs.brown.edu> wrote:
> mzscheme seems to be lacking one construct that is
> key to (my style of)
> good software engineering: assertions.

Part of SchemeUnit is a library of assertion
functions.  We currently have

  assert
  assert-exn
  assert-true
  assert-false
  assert-pred
  assert-eq?
  assert-eqv?
  assert-equal?

That do what you'd expect (or maybe not if you expect
something different to what they do).  

I like the way you've grabbed the source position in
your assert macro and I think I'll have to steal the
idea.

Oh yeah,  SchemeUnit is at

  http://schematics.sf.net/

Noel

__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com