Refer to test errors as failures
[tiger.ml.git] / compiler / src / exe / tiger_tests.ml
index ebbf6ab..6f1ce3b 100644 (file)
@@ -158,7 +158,11 @@ end = struct
             p_indent 2; p "out: %s" parsing_out; p_ln ();
     );
     p "%s" bar_end; p_ln ();
-    exit !error_count
+    let failures = !error_count in
+    let clr = (if failures = 0 then Green else Red) in
+    p "Failures: %s" (color clr (string_of_int failures)); p_ln ();
+    p "%s" bar_end; p_ln ();
+    exit failures
 end
 
 let test_cases_from_book =
This page took 0.034153 seconds and 4 git commands to generate.