about summary refs log tree commit diff stats
path: root/082scenario_screen.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-07-22 14:13:25 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-07-22 14:13:25 -0700
commit4cb5b56763461373b59902f8f653cb15ded79585 (patch)
tree409176326b0008626ab8a597ed62e29c093c86c1 /082scenario_screen.cc
parent6c3b526cc725af11e3b7ab5870ebc4207510be08 (diff)
downloadmu-4cb5b56763461373b59902f8f653cb15ded79585.tar.gz
3126
Diffstat (limited to '082scenario_screen.cc')
-rw-r--r--082scenario_screen.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/082scenario_screen.cc b/082scenario_screen.cc
index a3cf9393..e79f66cb 100644
--- a/082scenario_screen.cc
+++ b/082scenario_screen.cc
@@ -249,10 +249,7 @@ void check_screen(const string& expected_contents, const int color) {
           // just testing check_screen
           raise << "expected screen location (" << row << ", " << column << ") to be in color " << color << " instead of " << no_scientific(get_or_insert(Memory, addr+cell_color_offset)) << '\n' << end();
         }
-        if (!Scenario_testing_scenario) {
-          Passed = false;
-          ++Num_failures;
-        }
+        if (!Scenario_testing_scenario) Passed = false;
         return;
       }
 
@@ -280,10 +277,7 @@ void check_screen(const string& expected_contents, const int color) {
         // just testing check_screen
         raise << "expected screen location (" << row << ", " << column << ") to contain " << curr << expected_pretty << color_phrase.str() << " instead of " << no_scientific(get_or_insert(Memory, addr)) << actual_pretty << '\n' << end();
       }
-      if (!Scenario_testing_scenario) {
-        Passed = false;
-        ++Num_failures;
-      }
+      if (!Scenario_testing_scenario) Passed = false;
       return;
     }
     assert(cursor.get() == '.');