1.0.5.7: missing test case for 1.0.4.40
authorNikodemus Siivola <nikodemus@random-state.net>
Sun, 29 Apr 2007 17:28:28 +0000 (17:28 +0000)
committerNikodemus Siivola <nikodemus@random-state.net>
Sun, 29 Apr 2007 17:28:28 +0000 (17:28 +0000)
 * Also add a test-case for the bad type declatation fixed in PCL in
   1.0.4.40.

tests/clos.impure.lisp
version.lisp-expr

index 36d1ee0..4994d55 100644 (file)
       (a b *count* (setf *count* 0))
       ())
 
+;;;; long-form method combination with &rest in :arguments
+;;;; (this had a bug what with fixed in 1.0.4.something)
+(define-method-combination long-form-with-&rest ()
+  ((methods *))
+  (:arguments x &rest others)
+  `(progn
+     ,@(mapcar (lambda (method)
+                 `(call-method ,method))
+               methods)
+     (list ,x (length ,others))))
+
+(defgeneric test-long-form-with-&rest (x &rest others)
+  (:method-combination long-form-with-&rest))
+
+(defmethod test-long-form-with-&rest (x &rest others)
+  nil)
+
+(assert (equal '(:foo 13)
+               (apply #'test-long-form-with-&rest :foo (make-list 13))))
+
 \f
 ;;;; success
index 8f0ead8..6bff9a4 100644 (file)
@@ -17,4 +17,4 @@
 ;;; checkins which aren't released. (And occasionally for internal
 ;;; versions, especially for internal versions off the main CVS
 ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"1.0.5.6"
+"1.0.5.7"