Public Member Functions | |
TestMapNode () | |
const char * | getName () |
void | runTests (IGameDef *gamedef) |
void | testNodeProperties (const NodeDefManager *nodedef) |
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 IGameDef::getNodeDefManager(), TEST, and testNodeProperties().
void TestMapNode::testNodeProperties | ( | const NodeDefManager * | nodedef | ) |
References CONTENT_AIR, NodeDefManager::get(), MapNode::getContent(), MapNode::getLight(), NodeDefManager::getLightingFlags(), ContentFeatures::light_propagates, LIGHTBANK_DAY, LIGHTBANK_NIGHT, MapNode::setContent(), and UASSERT.
Referenced by runTests().