ShouldType.check

Checks a boolean condition for truth, throwing an exception when it fails. The components making up the exception string are passed lazily. The message has the form: "test failed {left} [because reason] {right}" For instance: "test failed: expected got.empty() because there should be nothing in there, but got [5]." In that case, left is ": expected got.empty()" and right is "but got [5]".

struct ShouldType(G, string[] phrase = [])
void
check
pure @safe
(
,
lazy string left
,
lazy string right
,
string file
,
size_t line
)

Meta