Static unittests?

Borislav Kosharov boby_dsm at abv.bg
Sat Aug 17 06:45:12 PDT 2013


monarch_dodra got my point. So a static unittest is just like a 
normal one, but it will be executed in compile time. And every 
assert in it is a static assert. They will be only used to test 
CTFE's results and to insure that all constants are initialized 
correctly.

I really think that this should be added to the language, because 
it doesn't break stuff and it is useful. And the 'static' keyword 
is already used in many places like module imports and ifs.


More information about the Digitalmars-d mailing list