Re: [dev] unit testing

2014-07-31 Thread Louis Santillan
I extracted kazuho's TAP code from his picogc repo [0] (example [1]). Not 3 lines but it can be run and integrate with any TAP parser [2]. [0] https://github.com/kazuho/picogc/blob/master/t/test.h [1] https://github.com/kazuho/picogc/blob/master/t/stack.cpp [2] http://en.wikipedia.org/wiki/Tes

Re: [dev] unit testing

2014-07-31 Thread Dimitris Papastamos
On Thu, Jul 31, 2014 at 10:57:23AM +0200, Markus Teich wrote: > Heyho, > > I just stumbled upon MinUnit[0], a 3-line unit test framework for C. Do you > know > other similarly simple solutions? Another alternative is to use some other programming language to prototype your algorithm/data structu

Re: [dev] unit testing

2014-07-31 Thread Dimitris Papastamos
On Thu, Jul 31, 2014 at 10:57:23AM +0200, Markus Teich wrote: > Heyho, > > I just stumbled upon MinUnit[0], a 3-line unit test framework for C. Do you > know > other similarly simple solutions? For anything non-trivial I generally test it separately, I simply copy the function into another .c an

Re: [dev] unit testing

2014-07-31 Thread Roberto E. Vargas Caballero
Hi, > I just stumbled upon MinUnit[0], a 3-line unit test framework for C. Do you > know > other similarly simple solutions? I wrote ago a simple framework for it long time: test.h: #ifndef UTEST_H_ #define UTEST_H_ #ifdef NDEBUG #undef NDEBUG #endif

[dev] unit testing

2014-07-31 Thread Markus Teich
Heyho, I just stumbled upon MinUnit[0], a 3-line unit test framework for C. Do you know other similarly simple solutions? --Markus (This is a repost since the original mail from yesterday seems to have gotten swallowed…) [0] http://www.jera.com/techinfo/jtns/jtn002.html