1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Tweak tests setup.

This commit is contained in:
AlexVinS 2015-11-15 18:29:00 +03:00
parent e7359c9a36
commit 126a821960

View File

@ -40,6 +40,9 @@ public:
opt.setHasTwoLevels(true); opt.setHasTwoLevels(true);
opt.setPlayerCount(2); opt.setPlayerCount(2);
opt.setPlayerTypeForStandardPlayer(PlayerColor(0), EPlayerType::HUMAN);
opt.setPlayerTypeForStandardPlayer(PlayerColor(1), EPlayerType::HUMAN);
CMapGenerator gen; CMapGenerator gen;
initialMap = gen.generate(&opt, TEST_RANDOM_SEED); initialMap = gen.generate(&opt, TEST_RANDOM_SEED);
@ -71,6 +74,8 @@ BOOST_AUTO_TEST_CASE(CMapFormatVCMI_Simple)
tmp.write((const char *)serializeBuffer.getBuffer().data(),serializeBuffer.getSize()); tmp.write((const char *)serializeBuffer.getBuffer().data(),serializeBuffer.getSize());
tmp.flush(); tmp.flush();
tmp.close(); tmp.close();
logGlobal->infoStream() << "Test map has been saved to " << path;
} }