- assertEq
void assertEq(A a, B b, string fmt = "assertEq fails: %s != %s", string file = __FILE__, size_t line = __LINE__)
- assertEqApprox
void assertEqApprox(A a, B b, E eps, lazy string fmt = "assertEqApprox fails: %s != %s", string file = __FILE__, size_t line = __LINE__)
throws AssertError if !eq_approx( a, b )
- assertInRange
void assertInRange(in MIN min_value, in V tested_value, in MAX max_value, lazy string fmt = "assertInRange fails: %s is out of %s")
throws AssertError if tested value out of range
- assertNotEq
void assertNotEq(A a, B b, lazy string fmt = "assertNotEq fails: %s == %s", string file = __FILE__, size_t line = __LINE__)
throws AssertError if eq( a, b )
- assertNotNull
void assertNotNull(A a, lazy string fmt = "assertNotNull fails: value is null", string file = __FILE__, size_t line = __LINE__)
throws AssertError if a is null
- assertNull
void assertNull(A a, lazy string fmt = "assertNull fails: %s !is null", string file = __FILE__, size_t line = __LINE__)
throws AssertError if a !is null
- eq
bool eq(A a, B b)
- eq_approx
bool eq_approx(A a, B b, E eps)
check equals a and b approx with epsilon
DES TestSuite
Minimal test suite for easy unittesting