des.ts

DES TestSuite

Minimal test suite for easy unittesting

Members

Functions

assertEq
void assertEq(A a, B b, string fmt)

throws AssertError if !eq( a, b )

assertEqApprox
void assertEqApprox(A a, B b, E eps, string fmt)

throws AssertError if !eq_approx( a, b )

assertExcept
void assertExcept(void delegate() fnc)

throws AssertError if not except E or if except not E

assertInRange
void assertInRange(MIN min_value, V tested_value, MAX max_value, string fmt)

throws AssertError if tested value out of range

assertNotEq
void assertNotEq(A a, B b, string fmt)

throws AssertError if eq( a, b )

assertNotNull
void assertNotNull(A a, string fmt)

throws AssertError if a is null

assertNull
void assertNull(A a, string fmt)

throws AssertError if a !is null

eq
bool eq(A a, B b)

check equals a and b

eq_approx
bool eq_approx(A a, B b, E eps)

check equals a and b approx with epsilon

mustExcept
bool mustExcept(void delegate() fnc, bool throw_unexpected)

try call delegate

newError
auto newError(string file, size_t line, string fmt, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
toStringForce
string toStringForce(Args args)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta