paysages3d/src/tests/Scenery_Test.cpp

16 lines
395 B
C++
Raw Normal View History

2015-08-03 22:00:56 +00:00
#include "BaseTestCase.h"
#include "Scenery.h"
TEST(Scenery, saveGlobal)
{
Scenery scenery;
scenery.autoPreset();
Scenery::FileOperationResult result = scenery.saveGlobal("/tmp/test_paysages_scenery");
EXPECT_EQ((int)Scenery::FILE_OPERATION_OK, result);
result = scenery.loadGlobal("/tmp/test_paysages_scenery");
EXPECT_EQ((int)Scenery::FILE_OPERATION_OK, result);
}