paysages3d/src/tests/Scenery_Test.cpp

17 lines
421 B
C++
Raw Normal View History

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