Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Karsten Poeck
ansi-test
Commits
b7f1f824
Commit
b7f1f824
authored
Apr 23, 2005
by
pfdietz
Browse files
Added *passing-tests*, *failing-tests* vars, which are set by do-tests
parent
0342cfe2
Changes
2
Show whitespace changes
Inline
Side-by-side
ansi-tests/rt-package.lsp
View file @
b7f1f824
...
...
@@ -48,6 +48,8 @@
#:defnote
#:my-aref
#:*catch-errors*
#:*passed-tests*
#:*failed-tests*
#:disable-note))))))
;; )
...
...
ansi-tests/rt.lsp
View file @
b7f1f824
...
...
@@ -47,6 +47,9 @@
(defvar *expanded-eval* nil "When true, convert the tests into a form that is less likely to have compiler optimizations.")
(defvar *optimization-settings* '((safety 3)))
(defvar *failed-tests* nil "After DO-TESTS, becomes the list of names of tests that have failed")
(defvar *passed-tests* nil "After DO-TESTS, becomes the list of names of tests that have passed")
(defvar *expected-failures* nil
"A list of test names that are expected to fail.")
...
...
@@ -274,8 +277,7 @@
(format s "~A" st))
(error () (format s "Actual value: #<error during printing>~%")
))
(finish-output s)
))))
(finish-output s)))))
(when (not (pend entry)) *test*))
(defun expanded-eval (form)
...
...
@@ -321,6 +323,8 @@
(defun do-tests (&optional
(out *standard-output*))
(setq *failed-tests* nil
*passed-tests* nil)
(dolist (entry (cdr *entries*))
(setf (pend entry) t))
(if (streamp out)
...
...
@@ -338,8 +342,11 @@
(dolist (entry (cdr *entries*))
(when (and (pend entry)
(not (has-disabled-note entry)))
(format s "~@[~<~%~:; ~:@(~S~)~>~]"
(do-entry entry s))
(let ((success? (do-entry entry s)))
(if success?
(push (name entry) *passed-tests*)
(push (name entry) *failed-tests*))
(format s "~@[~<~%~:; ~:@(~S~)~>~]" success?))
(finish-output s)
))
(let ((pending (pending-tests))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment