Re: optionally verbose assertions

2011-04-14 Thread Steven Schveighoffer
e compiled with that switch, of course). Man, I'm very pleased to read someone else advocating for optionally verbose assertions. This could use 2 arguments instead of a predicate: assert(expressions, value); Example use: [snip] I don't think we can change assert syntax now. Wh

Re: optionally verbose assertions

2011-04-14 Thread spir
On 04/14/2011 06:52 PM, Steven Schveighoffer wrote: A compromise might be to be able to name unit tests, and then run a specific unit test by name on execution only. This allows you to ensure a specific unit test (and specific asserts in that unit test) are running without having to see all the

Re: optionally verbose assertions

2011-04-14 Thread spir
, I'm very pleased to read someone else advocating for optionally verbose assertions. This could use 2 arguments instead of a predicate: assert(expressions, value); Example use: [snip] I don't think we can change assert syntax now. What I was looking was for something more like: ass

Re: optionally verbose assertions

2011-04-14 Thread spir
advocating for optionally verbose assertions. This could use 2 arguments instead of a predicate: assert(expressions, value); Example use: [snip] I don't think we can change assert syntax now. What I was looking was for something more like: assert(x == y); prints out "asserting x == y: tru

Re: optionally verbose assertions

2011-04-14 Thread Steven Schveighoffer
version statements or templates). >>>> It would >>>> be nice if there was a -assertprint mode which showed asserts >>>> actually running >>>> (only for the module compiled with that switch, of course). >>> >>> Man, I'm very p

Re: optionally verbose assertions

2011-04-14 Thread Jonathan M Davis
ments or templates). > >>>> It would > >>>> be nice if there was a -assertprint mode which showed asserts > >>>> actually running > >>>> (only for the module compiled with that switch, of course). > >>> > >>> Man, I&#

Re: optionally verbose assertions

2011-04-14 Thread Steven Schveighoffer
of course). Man, I'm very pleased to read someone else advocating for optionally verbose assertions. This could use 2 arguments instead of a predicate: assert(expressions, value); Example use: [snip] I don't think we can change assert syntax now. What I was looking was for something

Re: optionally verbose assertions

2011-04-14 Thread Daniel Gibson
ly running >>> (only for the module compiled with that switch, of course). >> >> Man, I'm very pleased to read someone else advocating for optionally >> verbose assertions. >> This could use 2 arguments instead of a predicate: >> assert(expressions,

Re: optionally verbose assertions

2011-04-14 Thread Steven Schveighoffer
n I'm doing version statements or templates). It would be nice if there was a -assertprint mode which showed asserts actually running (only for the module compiled with that switch, of course). Man, I'm very pleased to read someone else advocating for optionally verbose assertions.

optionally verbose assertions

2011-04-14 Thread spir
t would be nice if there was a -assertprint mode which showed asserts actually running (only for the module compiled with that switch, of course). Man, I'm very pleased to read someone else advocating for optionally verbose assertions. This could use 2 arguments instead of a predicate: ass