X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests-report.lisp;h=19a95a7069071d5a7a87eac74f093125869b9820;hb=3d1e86f1638c71cfc4d11638dcb6b42cfd30d859;hp=529f1ad26db2c7848bdab9debf50aab015e3a862;hpb=262e1601f42aa136b8ce452580d784656ce1c6d1;p=jscl.git diff --git a/tests-report.lisp b/tests-report.lisp index 529f1ad..19a95a7 100644 --- a/tests-report.lisp +++ b/tests-report.lisp @@ -1,15 +1,12 @@ -(write-line "") -(write-string "Finished. The execution took ") -(write-string (prin1-to-string (/ (- (get-internal-real-time) *timestamp*) internal-time-units-per-second))) -(write-line " seconds.") +(format t "~%Finished. The execution took ~a seconds.~%" + (/ (- (get-internal-real-time) *timestamp*) internal-time-units-per-second 1.0)) -(cond - ((zerop *failed-tests*) - (write-string "All tests (") - (write-string (prin1-to-string *passed-tests*)) - (write-line ") passed successfully")) - (t - (write-string (prin1-to-string *failed-tests*)) - (write-string "/") - (write-string (prin1-to-string (+ *passed-tests* *failed-tests*))) - (write-line " failed."))) +(if (= *passed-tests* *total-tests*) + (format t "All the tests (~a) passed successfully.~%" *total-tests*) + (format t "~a/~a test(s) passed successfully.~%" *passed-tests* *total-tests*)) + +(unless (zerop *expected-failures*) + (format t "~a test(s) failed expectedly.~%" *expected-failures*)) + +(unless (zerop *unexpected-passes*) + (format t "~a test(s) passed unexpectedly.~%" *unexpected-passes*))