Przeglądaj źródła

Tweak tests setup.

AlexVinS 10 lat temu
rodzic
commit
126a821960
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      test/CMapFormatTest.cpp

+ 5 - 0
test/CMapFormatTest.cpp

@@ -40,6 +40,9 @@ public:
 		opt.setHasTwoLevels(true);
 		opt.setPlayerCount(2);
 
+		opt.setPlayerTypeForStandardPlayer(PlayerColor(0), EPlayerType::HUMAN);
+		opt.setPlayerTypeForStandardPlayer(PlayerColor(1), EPlayerType::HUMAN);
+
 		CMapGenerator gen;
 
 		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.flush();
 		tmp.close();
+
+		logGlobal->infoStream() << "Test map has been saved to " << path;
 	}