Unittest Walker

Thomas Kuehne thomas-dloop at kuehne.cn
Fri Dec 8 05:14:25 PST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lutger schrieb am 2006-12-08:

<snip>

> Good idea, I'll try it whenever I get around to install linux. What 
> about something like this:
>
> unittest("testing some stuff")
> { ... }
>
> or perhaps this is better:
>
> /// testing some stuff
> unittest
> {...}
>
> testing some_module: "testing some stuff" ... SUCCESS
>
>
> Is this possible / difficult?

This would require compiler support. You can however use someting like
this:

#
# unittest {
# 	writefln("%s:%s %s", __FILE__, __LINE__, "your message here");
#	...
# }
#

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFFeXI+LK5blCcjpWoRAmW6AJ9vKcM49KgqtLjFGjDBykKFP21Y4wCfeF/7
tPLqVHkAt4pZMhM0skiZz+Q=
=Nyci
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-announce mailing list