Having this while re-debugging the boostrap would have saved few hours
of debug so let's add it.
* test/src/comp-tests.el (and-3): Add test.
* test/src/comp-test-funcs.el (comp-test-and-3-var): New var.
(comp-test-and-3-f): New function.
(defsubst comp-test-defsubst-f ()
t)
+(defvar comp-test-and-3-var 1)
+(defun comp-test-and-3-f (x)
+ (and (atom x)
+ comp-test-and-3-var
+ 2))
+
\f
;;;;;;;;;;;;;;;;;;;;
;; Tromey's tests ;;
'(lambda ()
(delete-region (point-min) (point-max))))))))
+(comp-deftest and-3 ()
+ (should (= (comp-test-and-3-f t) 2))
+ (should (null (comp-test-and-3-f '(1 2)))))
+
\f
;;;;;;;;;;;;;;;;;;;;;
;; Tromey's tests. ;;