diff tests/automated/lisp-tests.el @ 4742:4cf435fcebbc

Make #'letf not error if handed a #'values form. lisp/ChangeLog addition: 2009-11-14 Aidan Kehoe <kehoea@parhasard.net> * cl-macs.el (letf): Check whether arguments to #'values are bound, and make them unbound after evaluating BODY; document the limitations of this macro. tests/ChangeLog addition: 2009-11-14 Aidan Kehoe <kehoea@parhasard.net> * automated/lisp-tests.el: Don't call Known-Bug-Expect-Failure now that the particular letf bug it tickled is fixed.
author Aidan Kehoe <kehoea@parhasard.net>
date Sat, 14 Nov 2009 11:43:09 +0000
parents 2491a837112c
children 95b04754ea8c
line wrap: on
line diff
--- a/tests/automated/lisp-tests.el	Sat Nov 14 11:32:10 2009 +0000
+++ b/tests/automated/lisp-tests.el	Sat Nov 14 11:43:09 2009 +0000
@@ -2079,17 +2079,11 @@
   (Assert
    (eq t (and))
    "Checking #'and behaves correctly with zero arguments.")
-  ;; This bug was here before the full multiple-value functionality
-  ;; was introduced (check it with (floor* pi) if you're
-  ;; curious). #'setf works, though, which is what most people are
-  ;; interested in. If you know the setf-method code better than I do,
-  ;; please post a patch; otherwise this is going to the back of the
-  ;; queue of things to do. I didn't break it :-) Aidan Kehoe, Mon Aug
-  ;; 31 10:45:50 GMTDT 2009. 
-  (Known-Bug-Expect-Error
-   void-variable
-   (letf (((values three one-four-one-five-nine) (floor pi)))
-     (* three one-four-one-five-nine))))
+  (Assert
+   (= (* 3.0 (- pi 3.0))
+      (letf (((values three one-four-one-five-nine) (floor pi)))
+        (* three one-four-one-five-nine)))
+   "checking letf handles #'values in a basic sense"))
 
 (Assert (equalp "hi there" "Hi There")
 	"checking equalp isn't case-sensitive")