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.

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)

Returns true if the expression throws.

assertTrue
void assertTrue(T test, Args args)

A Better assert. See also: http://poita.org/2012/09/02/a-better-assert-for-d.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+poita+%28poita.org%29 TODO Can we convert args to strings like GCC's __STRING(expression)? TODO Make these be able to be called in unittest placed in struct scopes

Meta