|
| From: | Brandon J. Van Every |
| Subject: | Re: [Chicken-users] Re: Integrating unit tests into source code |
| Date: | Fri, 15 Dec 2006 04:36:57 -0800 |
| User-agent: | Thunderbird 1.5.0.8 (Windows/20061025) |
Thomas Christian Chust wrote:
Brandon J. Van Every wrote: How is that better than just writing tests then? Of course it makes most sense to put parameter and return value checking assertions into those blocks, not something with strange side effects or the like, because all the contract blocks are usually automatically removed in the release build. Standard way to add and remove tests, is that the benefit? In contrary to unit tests, I find contracts very useful not only to debug library code, but also code using a library. But contracts don't replace tests. I feel a need for Wikipedia coming on. Like Felix said earlier in this thread, I would as well vote for a general code annotation system that could be used to implement both contracts and unit tests in CHICKEN. Sounds good to me. Cheers, Brandon Van Every |
| [Prev in Thread] | Current Thread | [Next in Thread] |