Use ROTATEF
authorStelian Ionescu <sionescu@cddr.org>
Mon, 23 Apr 2012 10:53:01 +0000 (12:53 +0200)
committerStelian Ionescu <sionescu@cddr.org>
Mon, 23 Apr 2012 10:53:01 +0000 (12:53 +0200)
src/check.lisp

index 12c9bf0..12f2256 100644 (file)
@@ -135,9 +135,7 @@ REASON-ARGS is provided, is generated based on the form of TEST:
                  (assert (not (and (consp expected)
                                    (eq (car expected) 'values))) ()
                                    "Both the expected and actual part is a values expression.")
-                 (let ((tmp expected))
-                   (setf expected actual
-                         actual tmp)))
+                 (rotatef expected actual))
                (let ((setf-forms))
                  (if (and (consp expected)
                           (eq (car expected) 'values))