about summary refs log tree commit diff stats
path: root/072scenario_screen.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-06 12:13:04 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-06 12:15:25 -0700
commit768bdb4dbf4e8943fe1c3fcf7f8840372ba79ec6 (patch)
treedbe277341a84707b927c322ba6ba95d9f40cf037 /072scenario_screen.cc
parent4680525f84ab44e6df1b032ee4eeb7ef6ca3e466 (diff)
downloadmu-768bdb4dbf4e8943fe1c3fcf7f8840372ba79ec6.tar.gz
1293 - start porting the chessboard app over
Just to put all our new test primitives through their paces, and iron
out any kinks.

Just the one chessboard scenario is taking 1.5-2.5x all the tests we've
written so far. But we're starting from a faster baseline, that was the
point of the C++ port. I also have -O3 optimizations in my back-pocket.
Diffstat (limited to '072scenario_screen.cc')
-rw-r--r--072scenario_screen.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/072scenario_screen.cc b/072scenario_screen.cc
index 43266e78..993639dd 100644
--- a/072scenario_screen.cc
+++ b/072scenario_screen.cc
@@ -117,6 +117,7 @@ void check_screen(const string& contents) {
   ++screen_data_start;  // now skip length
   for (index_t i = 0; i < expected_contents.size(); ++i) {
     trace("run") << "checking location " << screen_data_start+i;
+//?     cerr << "comparing " << i/screen_width << ", " << i%screen_width << ": " << Memory[screen_data_start+i] << " vs " << (int)expected_contents[i] << '\n'; //? 1
     if ((!Memory[screen_data_start+i] && !isspace(expected_contents[i]))  // uninitialized memory => spaces
         || (Memory[screen_data_start+i] && Memory[screen_data_start+i] != expected_contents[i])) {
 //?       cerr << "CCC " << Trace_stream << " " << Hide_warnings << '\n'; //? 1