I find myself doing stuff like...<br><br>#lang racket<br>(require rackunit)<br>(provide my-function ...)<br><br>; My code<br><br>(define (my-function ...) ...) ...<br><br>; My tests ...<br><br>(check* ...) ... ; * in the wildcard sense<br>
<br>... so that I never evade testing my code. Does another developer end up testing my code? A user?<br>In other words, if I don&#39;t export the test code via <b>require</b>, what gets executed by importers? of source? of executables?<br>
IMHO, even if the answer is &quot;all of it&quot;, it&#39;s worth it, but the answer may affect how tests are written.<br><br>Pat<br>