hackt
hackt copied to clipboard
feature request for compile time assert to print message
spec { assert<EXPR>() }
needs to be able to print a given message. Maybe like this?
spec { assert<EXPR, "print this message">() }
I'd propose something like this:
spec {
assert<EXPR, STRING>()
}
Right now, it is:
spec {
assert<EXPR, EXPR, EXPR, ...>()
}
and it checks that all expressions are true. I wonder if I can come up with a poor-man's workaround...