Public Member Functions | |
| TestDataStructures () | |
| const char * | getName () |
| void | runTests (IGameDef *gamedef) |
| void | testMap1 () |
| void | testMap2 () |
| void | testMap3 () |
| void | testMap4 () |
| void | testMap5 () |
| void | testBitmap (u32 w, u32 h) |
| 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 rawstream, TEST, testBitmap(), testMap1(), testMap2(), testMap3(), testMap4(), and testMap5().
| void TestDataStructures::testBitmap | ( | u32 | w, |
| u32 | h ) |
References Bitmap::all(), Bitmap::get(), Bitmap::none(), Bitmap::reset(), Bitmap::set(), Bitmap::toggle(), UASSERT, Bitmap::unset(), x, and y.
Referenced by runTests().
| void TestDataStructures::testMap1 | ( | ) |
References ModifySafeMap< K, V >::clear(), ModifySafeMap< K, V >::iter(), ModifySafeMap< K, V >::put(), and UASSERT.
Referenced by runTests().
| void TestDataStructures::testMap2 | ( | ) |
References ModifySafeMap< K, V >::clear(), ModifySafeMap< K, V >::put(), and UASSERT.
Referenced by runTests().
| void TestDataStructures::testMap3 | ( | ) |
References ModifySafeMap< K, V >::iter(), ModifySafeMap< K, V >::put(), ModifySafeMap< K, V >::remove(), ModifySafeMap< K, V >::take(), and UASSERT.
Referenced by runTests().
| void TestDataStructures::testMap4 | ( | ) |
References ModifySafeMap< K, V >::get(), ModifySafeMap< K, V >::iter(), ModifySafeMap< K, V >::put(), ModifySafeMap< K, V >::size(), ModifySafeMap< K, V >::take(), UASSERT, and UASSERTEQ.
Referenced by runTests().
| void TestDataStructures::testMap5 | ( | ) |
References ModifySafeMap< K, V >::get(), ModifySafeMap< K, V >::iter(), ModifySafeMap< K, V >::put(), and UASSERTEQ.
Referenced by runTests().