X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fconditionals.lisp;h=af71104a4ddc62d5b755bca3b94503f1d65a2f6d;hb=dd113ef1c4663441fc3037922273c45cf5cc3c64;hp=19736e1b88ff028e4d89522b416ace710de516b6;hpb=ec5a0cce4f4b450e991db0d47f0e7998dbeda662;p=jscl.git diff --git a/tests/conditionals.lisp b/tests/conditionals.lisp index 19736e1..af71104 100644 --- a/tests/conditionals.lisp +++ b/tests/conditionals.lisp @@ -15,3 +15,10 @@ (test (= 2 (cond (1 2)))) (test (= 3 (cond (nil 1) (2 3)))) (test (eql nil (cond (nil 1) (nil 2)))) + +; CASE + +(test (= (case 1 (2 3) (otherwise 42)) 42)) +(test (= (case 1 (2 3) (t 42)) 42)) +(test (= (case 1 (2 3) (1 42)) 42)) +(test (null (case 1 (2 3))))