Let's bikeshed std.experimental.testing assertions/checks/whatchamacallits
Jacob Carlborg via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jul 1 12:17:11 PDT 2015
On 01/07/15 15:45, Dicebot wrote:
> Sadly, this does not really fix the issue in the long term. Using
> assertions in tests prevents building non-fatal test runners because by
> spec AssertError is non-recoverable. That is quite a serious limitation.
There's an assertion handler that can be set in druntime [1].
Unfortunately the callback is declared as "nothrow". If this "nothrow"
it could be used to throw an exception instead of an error.
[1]
https://github.com/D-Programming-Language/druntime/blob/master/src/core/exception.d#L378
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list