(write-line " seconds.")
(cond
- ((zerop *failed-tets*)
+ ((zerop *failed-tests*)
(write-string "All tests (")
- (write-string (prin1-to-string *passed-tets*))
+ (write-string (prin1-to-string *passed-tests*))
(write-line ") passed successfully"))
(t
- (write-string (prin1-to-string *failed-tets*))
+ (write-string (prin1-to-string *failed-tests*))
(write-string "/")
- (write-string (prin1-to-string (+ *passed-tets* *failed-tets*)))
+ (write-string (prin1-to-string (+ *passed-tests* *failed-tests*)))
(write-line " failed.")))
-(defvar *passed-tets* 0)
-(defvar *failed-tets* 0)
+(defvar *passed-tests* 0)
+(defvar *failed-tests* 0)
(defvar *timestamp* (get-internal-real-time))
(defmacro test (condition)
`(cond
(,condition
(write-line ,(concat "Test `" (prin1-to-string condition) "' passed"))
- (incf *passed-tets*))
+ (incf *passed-tests*))
(t
(write-line ,(concat "Test `" (prin1-to-string condition) "' failed."))
- (incf *failed-tets*))))
+ (incf *failed-tests*))))
(write-line "Running tests...")
(write-line "")