paysages3d/src/tests/Scenery_Test.cpp
Michael Lemaire 0fc10fd28b Added FloatNode and smart save/load of definition tree
Node children are now saved with their name, and if a child is not found,
it is skipped. This will allow for backward/forward compatibility of saves.
2015-08-13 23:46:50 +02:00

17 lines
439 B
C++

#include "BaseTestCase.h"
#include "Scenery.h"
#include "Logs.h"
TEST(Scenery, saveGlobal)
{
Scenery scenery1;
scenery1.autoPreset();
Scenery::FileOperationResult result = scenery1.saveGlobal("/tmp/test_paysages_scenery");
EXPECT_EQ((int)Scenery::FILE_OPERATION_OK, result);
Scenery scenery2;
result = scenery2.loadGlobal("/tmp/test_paysages_scenery");
EXPECT_EQ((int)Scenery::FILE_OPERATION_OK, result);
}