Michael Lemaire
0fc10fd28b
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.
17 lines
439 B
C++
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);
|
|
}
|