projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3363b90
)
[test] Add a test for mapcar
author
Alfredo Beaumont
<alfredo.beaumont@gmail.com>
Fri, 10 May 2013 14:45:14 +0000
(16:45 +0200)
committer
Alfredo Beaumont
<alfredo.beaumont@gmail.com>
Fri, 10 May 2013 15:23:46 +0000
(17:23 +0200)
tests/list.lisp
patch
|
blob
|
history
diff --git
a/tests/list.lisp
b/tests/list.lisp
index
9bb2996
..
d96c7db
100644
(file)
--- a/
tests/list.lisp
+++ b/
tests/list.lisp
@@
-88,6
+88,9
@@
(and (= bar 1)
(= (car foo) 2))))
+;; MAPCAR
+(test (equal (mapcar #'+ '(1 2) '(3) '(4 5 6)) '(8)))
+
;; MAPC
(test (equal (mapc #'+ '(1 2) '(3) '(4 5 6)) '(1 2)))
(test (let (foo)