improved readability of tape test summary
authorHolger Schemel <info@artsoft.org>
Fri, 14 Feb 2020 21:43:39 +0000 (22:43 +0100)
committerHolger Schemel <info@artsoft.org>
Tue, 19 May 2020 16:12:55 +0000 (18:12 +0200)
src/tape.c

index 43c3c30699807efed1332e53488ab6adbf02ae5a..bf24b531d24b9adbdd6679012689ddb3a12f7f51 100644 (file)
@@ -1251,12 +1251,13 @@ void AutoPlayTape(void)
   PrintLine("=", 79);
   Print("Number of levels played: %d\n", num_levels_played);
   Print("Number of levels solved: %d (%d%%)\n", num_levels_solved,
-        (num_levels_played ? num_levels_solved * 100 / num_levels_played :0));
+       (num_levels_played ? num_levels_solved * 100 / num_levels_played : 0));
   PrintLine("-", 79);
   Print("Summary (for automatic parsing by scripts):\n");
-  Print("LEVELDIR '%s', SOLVED %d/%d (%d%%)",
-        autoplay_leveldir->identifier, num_levels_solved, num_levels_played,
-        (num_levels_played ? num_levels_solved * 100 / num_levels_played :0));
+  Print("LEVELDIR [%s] '%s', SOLVED %d/%d (%d%%)",
+       (num_levels_played == num_levels_solved ? " OK " : "WARN"),
+       autoplay_leveldir->identifier, num_levels_solved, num_levels_played,
+       (num_levels_played ? num_levels_solved * 100 / num_levels_played : 0));
 
   if (num_levels_played != num_levels_solved)
   {