How to write a predicate like:
assert( throws(someStatement, ErrorType) );
?
Meaning a kind of builtin shortcut for:
try:
someStatement;
throw new SomeCustomError();
catch (ErrorType _) {}
that would also have the advantage of beeing usable as assert variant,
unifying unittest checks. I constantly need that.
Denis _________________ vita es estrany spir.wikidot.com
