Question about unittests
Lars Ivar Igesund
larsivar at igesund.net
Wed Jan 10 06:02:21 PST 2007
mfeathers wrote:
>
> Thanks. Another quick question. Is "assert" legal syntax outside of
> contacts and unit tests? For instance, can I do this:
>
> unittest {
> someMethod();
> }
>
> void someMethod() {
> assert 0 == 1
> }
assert(0 == 1);, but otherwise yes.
--
Lars Ivar Igesund
blog at http://larsivi.net
DSource & #D: larsivi
Dancing the Tango
More information about the Digitalmars-d-learn
mailing list