34 lines
691 B
C++
34 lines
691 B
C++
#include "tests.h"
|
|
|
|
#include <seallib/assert.h>
|
|
|
|
/*
|
|
commented out for obvious reasons
|
|
*/
|
|
#if 0
|
|
|
|
class AssertTest : ITest
|
|
{
|
|
public:
|
|
AssertTest() : ITest() {};
|
|
|
|
virtual void run() override
|
|
{
|
|
int a = 2;
|
|
int b = 5;
|
|
|
|
logInfo("trying true assertions");
|
|
ASSERT(a * b == 10, "Invalid assertion");
|
|
ASSERT(true, "Invalid assertion");
|
|
|
|
logInfo("trying false assertion");
|
|
ASSERT(false, "Valid assertion");
|
|
ASSERT(a * b == a, "Valid assertion");
|
|
}
|
|
|
|
virtual const char* getName() override { return "Assertion test"; }
|
|
};
|
|
|
|
static AssertTest g_assertTest;
|
|
#endif
|