X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=example.lisp;h=73ab43974003224e3ac142e644fb09f3be524463;hb=0114e93940d17c3dd840f37a81d6fb0da66e7a25;hp=4a89aec87074524355632b0c8024fff9d10b57e6;hpb=6e195606e06173086a91616042adef3072633d92;p=xlunit.git diff --git a/example.lisp b/example.lisp index 4a89aec..73ab439 100644 --- a/example.lisp +++ b/example.lisp @@ -2,7 +2,7 @@ ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; -;;;; ID: $Id: example.lisp,v 1.7 2003/08/04 19:31:34 kevin Exp $ +;;;; ID: $Id: example.lisp,v 1.9 2003/08/06 11:37:23 kevin Exp $ ;;;; Purpose: Example file for XLUnit ;;;; ;;;; ************************************************************************* @@ -33,18 +33,18 @@ (setf (numberb tcase) 3)) -(def-test-method (test-addition test math-test-case :run nil) +(def-test-method test-addition ((test math-test-case) :run nil) (let ((result (+ (numbera test) (numberb test)))) (assert-true (= result 5)))) -(def-test-method (test-subtraction test math-test-case :run nil) +(def-test-method test-subtraction ((test math-test-case) :run nil) (let ((result (- (numberb test) (numbera test)))) (assert-equal result 1))) ;;; This method is meant to signal a failure -(def-test-method (test-subtraction-2 test math-test-case :run nil) +(def-test-method test-subtraction-2 ((test math-test-case) :run nil) (let ((result (- (numbera test) (numberb test)))) - (assert-equal result 1))) + (assert-equal result 1 "This is meant to failure"))) ;;;; Finally we can run our test suite and see how it performs. (textui-test-run (get-suite math-test-case))