Re: Simple bolt-on unittest improvement

2009-09-12 Thread Nick Sabalausky
"Bill Baxter" wrote in message news:mailman.64.1252768975.20261.digitalmar...@puremagic.com... > On Sat, Sep 12, 2009 at 7:09 AM, Justin Johansson > wrote: >> Lutger Wrote: >> >>> I'm rewriting my testing stuff at the moment, I hoped to use the runtime >>> features to be able to user regular ass

Re: Simple bolt-on unittest improvement

2009-09-12 Thread Justin Johansson
Lutger Wrote: > Justin Johansson wrote: > ... > > If I haven't misread you, sounds we are on the same track. > > For sure, one thing I have come to appreciate is how Walter made things so > simple: one file containing related code, documentation and the testsuite. > As soon as you have more tha

Re: Simple bolt-on unittest improvement

2009-09-12 Thread Bill Baxter
On Sat, Sep 12, 2009 at 7:09 AM, Justin Johansson wrote: > Lutger Wrote: > >> I'm rewriting my testing stuff at the moment, I hoped to use the runtime >> features to be able to user regular asserts too but that didn't work out. >> >> Do you know you can get rid of the need to pass __FILE__ and __L

Re: Simple bolt-on unittest improvement

2009-09-12 Thread Lutger
Justin Johansson wrote: ... > If I haven't misread you, sounds we are on the same track. For sure, one thing I have come to appreciate is how Walter made things so simple: one file containing related code, documentation and the testsuite. As soon as you have more than one of anything there is bo

Re: Simple bolt-on unittest improvement

2009-09-12 Thread Justin Johansson
Lutger Wrote: > I'm rewriting my testing stuff at the moment, I hoped to use the runtime > features to be able to user regular asserts too but that didn't work out. > > Do you know you can get rid of the need to pass __FILE__ and __LINE__? > > Define the functions this way: > > void expectEqua

Re: Simple bolt-on unittest improvement

2009-09-12 Thread Lutger
I'm rewriting my testing stuff at the moment, I hoped to use the runtime features to be able to user regular asserts too but that didn't work out. Do you know you can get rid of the need to pass __FILE__ and __LINE__? Define the functions this way: void expectEquals(T)(T some_x, T some_y,

Re: Simple bolt-on unittest improvement

2009-09-11 Thread Nick Sabalausky
"Nick Sabalausky" wrote in message news:h8f6pg$1q5...@digitalmars.com... > "Justin Johansson" wrote in message > news:h8edsq$b9...@digitalmars.com... >> >> The idea is to keep working within D's built in unit test facility; just >> don't use assert statements in current fashion as if one fails

Re: Simple bolt-on unittest improvement

2009-09-11 Thread Nick Sabalausky
"Justin Johansson" wrote in message news:h8edsq$b9...@digitalmars.com... > > The idea is to keep working within D's built in unit test facility; just > don't use assert statements in current fashion as if one fails then whole > test stops running. I found that to be an enormous PITA too... >

Re: Simple bolt-on unittest improvement

2009-09-11 Thread Christopher Wright
Justin Johansson wrote: Hope it doesn't sound like I just discovered America but being a D newbie one is keen to play with all the language features. So soon getting round to playing with D's unit test facility with JUnit (Java test unit) experience in mind, found that I wanted all my tests

Simple bolt-on unittest improvement

2009-09-11 Thread Justin Johansson
Hope it doesn't sound like I just discovered America but being a D newbie one is keen to play with all the language features. So soon getting round to playing with D's unit test facility with JUnit (Java test unit) experience in mind, found that I wanted all my tests to run even if one or the