On 28/11/13 17:40, Dicebot wrote:
I have quickly tested it and looks like asserts are not removed from unittest
blocks in release builds, only from normal code. Which does not seem to be
documented on dlang.org but was probably introduced exactly to prevent existing
tests from breaking in release mode. I have just learned something new :)

Snap, I just came to the same conclusion after finding that version(assert) seemed to be working fine in a main() function but that it continued to be ignored inside a unittest scope :-)

Reply via email to