From 8cdfed6acb211a1f3c740cb372cc8745f18d181c Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 27 May 2015 17:05:34 -0700 Subject: 1488 --- 072scenario_screen.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/072scenario_screen.cc b/072scenario_screen.cc index 98342682..5675da5b 100644 --- a/072scenario_screen.cc +++ b/072scenario_screen.cc @@ -202,6 +202,10 @@ void check_screen(const string& expected_contents, const int color) { uint32_t curr = cursor.get(); if (Memory[addr] == 0 && isspace(curr)) continue; //? cerr << color << " vs " << Memory[addr+1] << '\n'; //? 1 + if (curr == ' ' && color != -1 && color != Memory[addr+cell_color_offset]) { + // filter out other colors + continue; + } if (Memory[addr] != 0 && Memory[addr] == curr) { if (color == -1 || color == Memory[addr+cell_color_offset]) continue; // contents match but color is off @@ -220,9 +224,6 @@ void check_screen(const string& expected_contents, const int color) { return; } - // mismatch; check if we should ignore because of the color - if (curr == ' ' && color != -1 && color != Memory[addr+cell_color_offset]) continue; - // really a mismatch // can't print multi-byte unicode characters in warnings just yet. not very useful for debugging anyway. char expected_pretty[10] = {0}; -- cgit 1.4.1-2-gfad0