Public Member Functions | |
TestKeycode () | |
const char * | getName () |
void | runTests (IGameDef *gamedef) |
void | testCreateFromString () |
void | testCreateFromSKeyInput () |
void | testCompare () |
Public Member Functions inherited from TestBase | |
bool | testModule (IGameDef *gamedef) |
std::string | getTestTempDirectory () |
std::string | getTestTempFile () |
void | runTest (const char *name, std::function< void()> &&test) |
Additional Inherited Members | |
Public Attributes inherited from TestBase | |
u32 | num_tests_failed |
u32 | num_tests_run |
|
inline |
|
inlinevirtual |
Implements TestBase.
|
virtual |
Implements TestBase.
References TEST, testCompare(), testCreateFromSKeyInput(), and testCreateFromString().
void TestKeycode::testCompare | ( | ) |
void TestKeycode::testCreateFromSKeyInput | ( | ) |
References KeyPress::Key, KeyPress::sym(), and UASSERTEQ_STR.
Referenced by runTests().
void TestKeycode::testCreateFromString | ( | ) |
References KeyPress::name(), KeyPress::sym(), UASSERTCMP, and UASSERTEQ_STR.
Referenced by runTests().