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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Macro Problems• Start with a macro and a test(defmacro my-macro (a b c)`(+ ,a (* ,b ,c)))(deftest test-my-macro () ())(addtest test-1(ensure-equal (my-macro 1 2 3) 7))==> (prints) Test Passed!• Change the macro(defmacro my-macro (a b c)`(list ,a ,b ,c))Uh Oh!(run-test)==> (prints) Test Passed!October 2003University of Massachusetts, AmherstGary King - EKSL

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

Saved successfully!

Ooh no, something went wrong!