Re: Comments on Arthur's test framework Per Bothner 22 Aug 2020 23:45 UTC

On 8/22/20 2:27 PM, Arthur A. Gleckler wrote:
> It means that there is no equivalent to SRFI 64's |test-begin| and |test-end|, which create a dynamic extent for tests that doesn't correspond to any lexical structure. I consider that a misfeature.

It does allow doing tests in the REPL:

$ kawa
#|kawa:1|# (test-begin "repl")
%%%% Starting test repl  (Writing full log to "repl.log")
#|kawa:2|# (define v (make-vector 5 99))
#|kawa:3|# (test-assert (vector? v))
#|kawa:4|# (test-eqv 99 (vector-ref v 2))
#|kawa:5|# (vector-set! v 2 7)
#|kawa:6|# (test-eqv 99 (vector-ref v 2))
/dev/tty:6: FAIL
#|kawa:7|# (test-eqv 99 (vector-ref v 7))
/dev/tty:7: FAIL
#|kawa:8|# (test-end)
# of expected passes      2
# of unexpected failures  2
#|kawa:9|#

"/dev/tty:6 FAIL" means the test failed on line number 6 file /dev/tty.
--
	--Per Bothner
xxxxxx@bothner.com   http://per.bothner.com/