modified phase error statement to be more descriptive. Added phase name to message. It was previously showing only the index number which is unhelpful.
This commit is contained in:
@@ -419,8 +419,9 @@ int TestSuite::assertGame()
|
|||||||
GameObserver * g = GameObserver::GetInstance();
|
GameObserver * g = GameObserver::GetInstance();
|
||||||
if (g->currentGamePhase != endState.phase)
|
if (g->currentGamePhase != endState.phase)
|
||||||
{
|
{
|
||||||
sprintf(result, "<span class=\"error\">==phase problem. Expected %i, got %i==</span><br />", endState.phase,
|
sprintf(result, "<span class=\"error\">==phase problem. Expected [ %s ](%i), got [ %s ](%i)==</span><br />",
|
||||||
g->currentGamePhase);
|
Constants::MTGPhaseNames[endState.phase],endState.phase,
|
||||||
|
Constants::MTGPhaseNames[g->currentGamePhase], g->currentGamePhase);
|
||||||
Log(result);
|
Log(result);
|
||||||
error++;
|
error++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user