Are there other Forth testing tools out there?
I've tried using the Hayes tester a couple of times. I like the
syntax
and simplicity, but its failure messages are just useless. If I have
to
go back and insert debug statements and re-run the tests to figure out
what actually went wrong, why bother using it at all? I might as well
just write ad-hoc test code and shove it in a file.
I want something that (at least) displays the actual and expected
stack
contents, and preferably something that can be extended to deal with
strings or other data. I'd love to be able to do:
T{ 1 2 3 => 1 5 }T
T{ s" abcdef" 2 /string => s" def" }( string )T
And see:
T{ 1 2 3 => 1 5 }T
Returned: <3> 1 2 3
Expected: <2> 1 5
T{ s" abcdef" 2 /string => s" def" }( string )T
Returned: <2> $8070938 4 ("cdef")
Expected: <2> $8070948 3 ("def")
Anybody have something like that, or should I roll my own?
--Josh