diff tests/automated/lisp-tests.el @ 5471:00e79bbbe48f

Merge with trunk.
author Mats Lidell <matsl@xemacs.org>
date Mon, 14 Feb 2011 22:43:46 +0100
parents 0af042a0c116 70b15ac66ee5
children ac37a5f7e5be
line wrap: on
line diff
--- a/tests/automated/lisp-tests.el	Mon Feb 07 21:22:17 2011 +0100
+++ b/tests/automated/lisp-tests.el	Mon Feb 14 22:43:46 2011 +0100
@@ -1044,6 +1044,12 @@
       (car y))
     x)))
 
+(Assert
+ (equal
+  (let ((list (list pi))) (mapcar* #'cons [1 2 3 4] (nconc list list)))
+  `((1 . ,pi) (2 . ,pi) (3 . ,pi) (4 . ,pi)))
+ "checking mapcar* behaves correctly when only one arg is circular")
+
 (Assert (eql
  (length (multiple-value-list
           (car (mapcar #'(lambda (argument) (floor argument)) (list pi e)))))