des.ts

DES TestSuite

Minimal test suite for easy unittesting

Public Imports

std.exception
public import std.exception;

Members

Functions

assertEq
void assertEq(A a, B b, string fmt, string file, size_t line)
assertEqApprox
void assertEqApprox(A a, B b, E eps, string fmt, string file, size_t line)

throws AssertError if !eq_approx( a, b )

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, string file, size_t line)

throws AssertError if eq( a, b )

assertNotNull
void assertNotNull(A a, string fmt, string file, size_t line)

throws AssertError if a is null

assertNull
void assertNull(A a, string fmt, string file, size_t line)

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

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

Meta