From 510b91935fde784423e07df28d7cb098ddb7e69e Mon Sep 17 00:00:00 2001 From: "techdragon.nguyen@gmail.com" Date: Sat, 20 Nov 2010 11:49:28 +0000 Subject: [PATCH] modified phase error statement to be more descriptive. Added phase name to message. It was previously showing only the index number which is unhelpful. --- projects/mtg/src/TestSuiteAI.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/mtg/src/TestSuiteAI.cpp b/projects/mtg/src/TestSuiteAI.cpp index 70ab7b003..d774fb0fd 100644 --- a/projects/mtg/src/TestSuiteAI.cpp +++ b/projects/mtg/src/TestSuiteAI.cpp @@ -419,8 +419,9 @@ int TestSuite::assertGame() GameObserver * g = GameObserver::GetInstance(); if (g->currentGamePhase != endState.phase) { - sprintf(result, "==phase problem. Expected %i, got %i==
", endState.phase, - g->currentGamePhase); + sprintf(result, "==phase problem. Expected [ %s ](%i), got [ %s ](%i)==
", + Constants::MTGPhaseNames[endState.phase],endState.phase, + Constants::MTGPhaseNames[g->currentGamePhase], g->currentGamePhase); Log(result); error++; }