util.unittests - ICE 0.1 API documentation

ICE 0.1 API documentation

# util.unittests

Extremely simple unittest framework working similarly to D's builtin tests.

This was added to avoid some DMD bugs with memory allocation before main() that made builtin unittests useless.

void runUnitTests();

  Run all registered unittests.

  Called by main() at startup.

template registerTest(alias testFunction,string testName)

  Register a unittest to be run at the beginning of main().

  Parameters:

  testFunction | Unittest funtion. Asserts mean test failure.
  testName | Name of the unittest.

Copyright © Ferdinand Majerech 2011. | Page generated by AutoDDoc and Ddoc.