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.
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.
- Re: Static unittests? Dicebot
- Re: Static unittests? Artur Skawina
- Re: Static unittests? Dicebot
- Re: Static unittests? monarch_dodra
- Re: Static unittests? Dicebot
- Re: Static unittests? monarch_dodra
- Re: Static unittests? Andrej Mitrovic
- Re: Static unittests? Jacob Carlborg
- Re: Static unittests? Jacob Carlborg
- Re: Static unittests? Andrej Mitrovic
- Re: Static unittests? Borislav Kosharov
- Re: Static unittests? Andrej Mitrovic
- Re: Static unittests? Borislav Kosharov
- Re: Static unittests? monarch_dodra
