Erwan
- (failed) Attempt to locate a bug with Keldon Warlord in momir
This commit is contained in:
@@ -66,6 +66,7 @@ hannas_custody.txt
|
|||||||
hymn_of_rebirth.txt
|
hymn_of_rebirth.txt
|
||||||
icatian_priest.txt
|
icatian_priest.txt
|
||||||
keldon_warlord.txt
|
keldon_warlord.txt
|
||||||
|
keldon_warlord_2.txt
|
||||||
kird_ape.txt
|
kird_ape.txt
|
||||||
kudzu.txt
|
kudzu.txt
|
||||||
kudzu2.txt
|
kudzu2.txt
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
#Bug: Keldon warlord dies when coming into play
|
||||||
|
[INIT]
|
||||||
|
FIRSTMAIN
|
||||||
|
[PLAYER1]
|
||||||
|
hand:keldon warlord
|
||||||
|
inplay:grizzly bears
|
||||||
|
manapool:{2}{R}{R}
|
||||||
|
[PLAYER2]
|
||||||
|
[DO]
|
||||||
|
keldon warlord
|
||||||
|
[ASSERT]
|
||||||
|
FIRSTMAIN
|
||||||
|
[PLAYER1]
|
||||||
|
inplay:grizzly bears,keldon warlord
|
||||||
|
manapool:{0}
|
||||||
|
[PLAYER2]
|
||||||
|
[END]
|
||||||
@@ -59,7 +59,7 @@ class TestSuite{
|
|||||||
string files[1024];
|
string files[1024];
|
||||||
int nbfiles;
|
int nbfiles;
|
||||||
int currentfile;
|
int currentfile;
|
||||||
void load(const char * filename);
|
int load(const char * filename);
|
||||||
TestSuite(const char * filename,MTGAllCards* _collection);
|
TestSuite(const char * filename,MTGAllCards* _collection);
|
||||||
void initGame();
|
void initGame();
|
||||||
int assertGame();
|
int assertGame();
|
||||||
|
|||||||
@@ -371,8 +371,11 @@ int TestSuite::loadNext(){
|
|||||||
summoningSickness = 0;
|
summoningSickness = 0;
|
||||||
if (!nbfiles) return 0;
|
if (!nbfiles) return 0;
|
||||||
if (currentfile >= nbfiles) return 0;
|
if (currentfile >= nbfiles) return 0;
|
||||||
load(files[currentfile].c_str());
|
|
||||||
currentfile++;
|
currentfile++;
|
||||||
|
if (!load(files[currentfile-1].c_str())) return loadNext();
|
||||||
|
|
||||||
|
//load(files[currentfile].c_str());
|
||||||
|
//currentfile++;
|
||||||
return currentfile;
|
return currentfile;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -424,10 +427,9 @@ void TestSuite::cleanup(){
|
|||||||
actions.cleanup();
|
actions.cleanup();
|
||||||
}
|
}
|
||||||
|
|
||||||
void TestSuite::load(const char * _filename){
|
int TestSuite::load(const char * _filename){
|
||||||
char filename[4096];
|
char filename[4096];
|
||||||
sprintf(filename, RESPATH"/test/%s", _filename);
|
sprintf(filename, RESPATH"/test/%s", _filename);
|
||||||
printf(filename);
|
|
||||||
std::ifstream file(filename);
|
std::ifstream file(filename);
|
||||||
std::string s;
|
std::string s;
|
||||||
|
|
||||||
@@ -502,7 +504,8 @@ void TestSuite::load(const char * _filename){
|
|||||||
}
|
}
|
||||||
file.close();
|
file.close();
|
||||||
}else{
|
}else{
|
||||||
//TODO Error management
|
return 0;
|
||||||
}
|
}
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user