- allTestDataint[] allTestData() 
- Dummy version so "normal" code compiles 
- checkvoid check(int numFuncCalls, string file, size_t line) 
- Same as unit_threaded.property.check 
- checkCustomvoid checkCustom(int numFuncCalls, string file, size_t line) 
- Same as unit_threaded.property.checkCustom 
- failvoid fail(string output, string file, size_t line) 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- mockauto  mock() 
- Same as unit_threaded.mock.mock 
- mockStructauto  mockStruct(T returns) 
- Same as unit_threaded.mock.mockStruct 
- runTestsint runTests(string[] args) 
- int runTests(string[] args, T testData) 
- Dummy version of runTests so "normal" code compiles. 
- runTestsImplint runTestsImpl() 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- shouldauto  should(E expr) 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- shouldApproxEqualvoid shouldApproxEqual(V value, E expected, double maxRelDiff, double maxAbsDiff, string file, size_t line) 
- Assert that value is approximately equal to expected. 
- shouldBeEmptyvoid shouldBeEmpty(R rng, string file, size_t line) 
- assert that rng is empty. 
- shouldBeFalsevoid shouldBeFalse(E condition, string file, size_t line) 
- Throw if condition not false. 
- shouldBeGreaterThanvoid shouldBeGreaterThan(T t, U u, string file, size_t line) 
- Assert that t should be greater than u. 
- shouldBeInvoid shouldBeIn(T value, U container, string file, size_t line) 
- Assert that value is in container. 
- shouldBeNullvoid shouldBeNull(T value, string file, size_t line) 
- shouldBeSameJsonAsvoid shouldBeSameJsonAs(string actual, string expected, string file, size_t line) 
- Assert that actual and expected represent the same JSON (i.e. formatting doesn't matter) 
- shouldBeSameSetAsvoid shouldBeSameSetAs(V value, E expected, string file, size_t line) 
- Assert that value is the same set as expected (i.e. order doesn't matter) 
- shouldBeSmallerThanvoid shouldBeSmallerThan(T t, U u, string file, size_t line) 
- Assert that t should be smaller than u. 
- shouldBeTruevoid shouldBeTrue(E condition, string file, size_t line) 
- Throw if condition is not true. 
- shouldEqualvoid shouldEqual(V value, E expected, string file, size_t line) 
- Assert value is equal to expected 
- shouldNotBeEmptyvoid shouldNotBeEmpty(R rng, string file, size_t line) 
- Assert that rng is not empty. 
- shouldNotBeInvoid shouldNotBeIn(T value, U container, string file, size_t line) 
- Assert value is not in container. 
- shouldNotBeNullvoid shouldNotBeNull(T value, string file, size_t line) 
- shouldNotBeSameSetAsvoid shouldNotBeSameSetAs(V value, E expected, string file, size_t line) 
- Assert that value is not the same set as expected. 
- shouldNotEqualvoid shouldNotEqual(V value, E expected, string file, size_t line) 
- Assert value is not equal to expected. 
- shouldNotThrowvoid shouldNotThrow(E expr, string file, size_t line) 
- Assert that expr doesn't throw 
- shouldThrowvoid shouldThrow(E expr, string file, size_t line) 
- shouldThrowExactlyvoid shouldThrowExactly(E expr, string file, size_t line) 
- Assert that expr throws an Exception that must have the type E, derived types won't do. 
- shouldThrowWithMessagevoid shouldThrowWithMessage(E expr, string msg, string file, size_t line) 
- Assert that expr throws and the exception message is msg. 
- writelnUtvoid writelnUt(T args) 
- No-op version of writelnUt 
This module is an attempt to alleviate compile times by including the bare minimum. The idea is that while the reporting usually done by unit-threaded is welcome, it only really matters when tests fail. Otherwise, no news is good news.
Likewise, naming and selecting tests are features used when certain tests fail. The usual way to run tests is to run all of them and be happy if they all pass.
This module makes it so that unit-threaded gets out of the way, and if needed the full features can be turned on at the cost of compiling much more slowly.
There aren't even any template constraints on the should functions to avoid imports as much as possible.