12.07.2015 Views

LIsp Framework for Testing - Common Lisp.net

LIsp Framework for Testing - Common Lisp.net

LIsp Framework for Testing - Common Lisp.net

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Macro Problems - 2• Work-around: test the expansionOctober 2003(addtest (test-bind)expand-2-in-1(ensure (equal (macroexpand'(bind ((a 1) b)(declare (fixnum a) (dynamic-extent b))))'(let ((a 1))(declare (type fixnum a))(let (b)(declare (dynamic-extent b)))))))– But depends on how the macro works, not onwhat the macro is supposed to do• Can write macros to call functions and thentest these functions• Could use reflection to automatically reevaluatetests with changed macros…University of Massachusetts, AmherstGary King - EKSL

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!