Improving unit tests
Derek Parnell
derek at psych.ward
Fri Nov 7 17:58:53 PST 2008
On Sat, 8 Nov 2008 10:42:16 +0900, Bill Baxter wrote:
> On Sat, Nov 8, 2008 at 9:48 AM, Derek Parnell <derek at psych.ward> wrote:
>> ** A variation of the assert statement that does not halt execution upon
>> finding an error. Instead, it just reports the error and moves on to the
>> next test.
>
> Can't that be done by a library function?
...
> Seems like a lib could do this too.
...
> Can that be done with a lib?
Sure they can all be done via library functions. No problem with that. In
fact I have a test_equal() and test_true() functions that implement this
functionality.
>> ** Nesting of unit test blocks.
>
> You mean nesting unittest{ unittest{ .. } ..} What would that be for?
In conjunction with variable declaration scope within unittest blocks.
--
Derek Parnell
Melbourne, Australia
skype: derek.j.parnell
More information about the Digitalmars-d
mailing list