Adding more unit tests for lisp

db4
James Cash 2008-05-05 12:48:58 -04:00
parent 3e8e976bee
commit 82cdbdeb0e
1 changed files with 12 additions and 0 deletions

View File

@ -6,4 +6,16 @@ IN: lisp.test
{ [ "aoeu" 2 1 T{ lisp-symbol f "foo" } ] } [
"(foo 1 2 \"aoeu\")" lisp-string>factor
] unit-test
init-env
"+" [ first2 + ] lisp-define
{ [ first2 + ] } [
"+" lisp-get
] unit-test
{ 3 } [
"((lambda (x y) (+ x y)) 1 2)" lisp-string>factor call
] unit-test