#include <Pt/Unit/Assertion.h>
Public Member Functions | |
| Assertion (const std::string &what, const SourceInfo &si) | |
| Construct from a message and source info. | |
| const Pt::SourceInfo & | sourceInfo () const |
void myTest() { int ten = 5 + 5; PT_UNIT_ASSERT(ten == 10) }
| Assertion | ( | const std::string & | what, | |
| const SourceInfo & | si | |||
| ) |
Constructs a assertion exception from a message string and a source info object that describes where the assertion failed. Use the PT_UNIT_ASSERT macro instead of this constructor.
| what | Error message | |
| si | Info where the assertion failed |