Re:Testing is waste of time, I know that my code works
by mononcqc on Friday December 24, 2010 @01:07PM
(#2037694)
Why don't you just automate the REPL tests so they can be done for you? Whatever you type in the REPL, add it to the test suite. Whatever you check as output, that's your set of assertions. It will save you a whole lot of time in the future.
[ Parent
| on HN ]
Re:Testing is waste of time, I know that my code works
by thesz on Saturday December 25, 2010 @05:48AM
(#2038787)
Why should I bother to convert tests from REPL? I use REPL for experiments along with testing. When I done experimenting I also done testing. When I'll return there, it would be for another experiment, significant part of my previous tests won't run again.
Also, I work mostly with pure functions and strong type systems. Those functions won't change their behavior if I change something in the system. These types won't let slip something bad that is hard to find.