nxt.assert_ex

A Better assert.

Members

Aliases

assertE
alias assertE = assertEqual
Undocumented in source.
assertLT
alias assertLT = assertLessThan
Undocumented in source.
assertLTE
alias assertLTE = assertLessThanOrEqual
Undocumented in source.
assertNE
alias assertNE = assertNotEqual
Undocumented in source.
assertT
alias assertT = assertTrue
Undocumented in source.

Functions

assertEqual
void assertEqual(T lhs, U rhs, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
assertLessThan
void assertLessThan(T lhs, U rhs, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
assertLessThanOrEqual
void assertLessThanOrEqual(T lhs, U rhs, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
assertNotEqual
void assertNotEqual(T lhs, U rhs, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
assertThrows
bool assertThrows(E expression, string msg, string file, int line)
assertTrue
void assertTrue(T test, Args args)

A Better assert.

Meta

Authors

TODO: make these @safe pure nothrow @nogc by utilizing dynamic_array and printf

extend to something like:

- must!"a == b"(x, y); - check!"a == b"(x, y); - require!"a == b"(x, y);