Menu

#39 clunit selftest failure

open
ansi-test (7)
5
2004-04-11
2004-04-11
No

I have just installed clocc for the first time, with
cmucl 18e on debian. When loading clunit, the self
tests fail on the test "Test compare-fn" (see below).
It a bit rusty with lisp programming, but it seems that
since AND is a macro, it can not be an argument to reduce.

I modified the failing form to:
(REDUCE #'EQ (CONS T (MAPCAR #'STRING-EQUAL RLIST1
RLIST2))) which solved the problem.

/ Henrik Ekelund
------------------------------------------------------

; Loading
#p"/usr/share/common-lisp/clocc/src/tools/clunit/clunit.lisp".

; In: DEFTEST "Test compare-fn"

; #'AND
; Error: Found macro name AND as the argument to FUNCTION.
;
; (REDUCE #'AND (MAPCAR #'STRING-EQUAL RLIST1 RLIST2))
; Note: The first argument never returns a value.
Execution of a form compiled with errors:
#'AND occurred in test "Test compare-fn"

Error in function NIL: Dummy error occurred in test
"Error test"
1 test run; 0 tests passed; 1 test failed.

Error in function NIL: Dummy error occurred in test
"Error test"
1 test run; 0 tests passed; 1 test failed.
2 tests run; 2 tests passed; 0 tests failed.
11 tests run; 10 tests passed; 1 test failed.

Discussion


Log in to post a comment.