I want to write a test (using clojure.test
) that verifies that some sample code does not cause an infinite loop. If the code that I'm testing is buggy and does cause an infinite loop, I want the test harness to report failure -- rather than just going off and looping forever. (I'm assuming a kind of infinite loop that does not overflow the stack.)
Any ideas how to do this?
Aucun commentaire:
Enregistrer un commentaire