Browse Source

Another defun that should be define-test

test-lexical-closure-over-adder used defun rather than define-test
Jeff Nicholson 12 years ago
parent
commit
973dc0f70c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      koans/functions.lsp

+ 1 - 1
koans/functions.lsp

@@ -166,7 +166,7 @@
166 166
   This function will add n to its argument."
167 167
   (lambda (y) (+ x y)))
168 168
 
169
-(defun test-lexical-closure-over-adder ()
169
+(define-test test-lexical-closure-over-adder ()
170 170
   (let ((add-100 (adder 100))
171 171
         (add-500 (adder 500)))
172 172
   "add-100 and add-500 now refer to different bindings to x"