2016-12-19 17:24:12 -05:00
|
|
|
(defun run-unit-test (unit-test)
|
|
|
|
(cond
|
2017-02-14 15:24:38 -05:00
|
|
|
((funcall unit-test) (print (cons T unit-test)) T)
|
|
|
|
(T (print (cons 'F unit-test)) NIL)
|
2016-12-19 17:24:12 -05:00
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(defun run-test-suite (test-suite)
|
|
|
|
(cond
|
|
|
|
(test-suite (cons (run-unit-test (car test-suite)) (run-test-suite (cdr test-suite))))
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(defun unit (test-suite)
|
2017-02-05 16:00:56 -05:00
|
|
|
(apply 'and (run-test-suite test-suite))
|
2016-12-19 17:24:12 -05:00
|
|
|
)
|