News for hackers. Stuff that matters.
Re:How I Write Tests by biggerfisch on Monday January 02, 2017 @12:30AM (#13299268)
His comment about the "zoo" of data-driven tests made the way my university's major algorithms class did tests finally make sense. It's not a concept that particularly easy to search for when you're working from the command of "make tests with this filename format, 'test-<args>'", nor is it even something that strikes one as something that might be an actual design pattern (at least for me).

I do wish the reasoning had been explained to me far earlier as I might have been able to really recognize the testing as useful and not just another strange requirement.

Re:How I Write Tests by aisofteng on Monday January 02, 2017 @04:12AM (#13300009)
It occurred to me in response to your comment that, pedagogically, it seems so obvious to tell math students to check their work, yet my universities never even mentioned unit tests (outside, perhaps, of the sole, non-required software engineering course, as I believe it was a work coop type of arrangement).
Re:How I Write Tests by tinganho on Monday January 02, 2017 @01:41AM (#13299487)
I actually wrote an article about this strategy: https://medium.com/@tinganho/baseline-acceptance-driven-deve...