Jeck - Added theme substyles, which are chosen dynamically based on the player's deck composition. Also added lazy unit test for booster packs, though there should be a better way to framework this.

This commit is contained in:
wagic.jeck
2010-08-28 10:51:38 +00:00
parent 3ad28096b1
commit 8114944db9
46 changed files with 415 additions and 26 deletions

View File

@@ -6,6 +6,7 @@
#include "../include/GuiCombat.h"
#include "../include/Rules.h"
#include "../include/GameObserver.h"
#include "../include/GameStateShop.h"
#include <string>
using std::string;
@@ -297,7 +298,6 @@ void TestSuite::initGame(){
}
OutputDebugString("TESTUITE Init Game Done !\n");
}
int TestSuite::Log(const char * text){
ofstream file (RESPATH"/test/results.html",ios_base::app);
if (file){
@@ -582,3 +582,17 @@ int TestSuite::load(const char * _filename){
return 1;
}
void TestSuite::pregameTests(){
//Test Booster Generation
srand(1024);
char result[1024];
ShopBooster sb;
for(int i=0;i<5;i++){
nbTests++;
sprintf(result, "<h3>pregame/BoosterTest#%i</h3>", i);
Log(result);
if(!sb.unitTest())
nbFailed++;
}
}