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:
parent
e7359c9a36
commit
126a821960
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user