OKlibrary  0.2.1.6
Guidelines.hpp File Reference

Plans on providing guidelines on the test system. More...

Go to the source code of this file.


Detailed Description

Plans on providing guidelines on the test system.

Todo:
Calling sub-tests
  • When a testfunction okltest_f calls another testfunction okltest_g, then it seems sensible to do this via "assert(okltest_g(...))", in order to make sure that the test was passed.
  • In principle this might not be necessary, since in case of failure an exception is thrown; though it should be safer to check also the return value.
  • A disadvantage is that the assert failure then happens at the place where the sub-test is called, and no information on the failing subtest is available.
  • In order to get this information, "assert(okltest_g(...))" needs to be changed to (simply) "okltest_g(...)".

Definition in file Guidelines.hpp.