X-Git-Url: http://git.kpe.io/?p=kmrcl.git;a=blobdiff_plain;f=tests.lisp;h=dc5053fbfd549c5053d6d76c71848160899681b9;hp=c917615b40b0030ea1bfa72a42c9f95998136dee;hb=042a035d9708f98f43b41ac07171ee0570658c8b;hpb=34af279a4b46f1543749915c1897438ea917be73 diff --git a/tests.lisp b/tests.lisp index c917615..dc5053f 100644 --- a/tests.lisp +++ b/tests.lisp @@ -7,7 +7,7 @@ ;;;; Author: Kevin M. Rosenberg ;;;; Date Started: Apr 2003 ;;;; -;;;; $Id: tests.lisp,v 1.22 2003/07/16 16:01:37 kevin Exp $ +;;;; $Id: tests.lisp,v 1.23 2003/07/31 07:36:55 kevin Exp $ ;;;; ;;;; This file is Copyright (c) 2000-2002 by Kevin M. Rosenberg ;;;; @@ -102,8 +102,10 @@ (deftest css.4 (concat-separated-strings "|" '("ab" "cd") nil) "ab|cd") (deftest css.5 (concat-separated-strings "|" '("ab" "cd") nil '("ef")) "ab|cd|ef") -(deftest f.1 (filter #'(lambda (x) (when (oddp x) (* x x))) +(deftest f.1 (map-and-remove-nils #'(lambda (x) (when (oddp x) (* x x))) '(0 1 2 3 4 5 6 7 8 9)) (1 9 25 49 81)) +(deftest f.2 (filter #'(lambda (x) (when (oddp x) (* x x))) + '(0 1 2 3 4 5 6 7 8 9)) (1 3 5 7 9)) (deftest an.1 (appendnew '(a b c d) '(c c e f)) (a b c d e f))