home
/
code
/
tiger.ml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d355806
)
Refer to test errors as failures
author
Siraaj Khandkar
<siraaj@khandkar.net>
Tue, 5 Jun 2018 16:24:24 +0000
(12:24 -0400)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Tue, 5 Jun 2018 16:24:24 +0000
(12:24 -0400)
compiler/src/exe/tiger_tests.ml
patch
|
blob
|
blame
|
history
diff --git
a/compiler/src/exe/tiger_tests.ml
b/compiler/src/exe/tiger_tests.ml
index
e2015e9
..
6f1ce3b
100644
(file)
--- a/
compiler/src/exe/tiger_tests.ml
+++ b/
compiler/src/exe/tiger_tests.ml
@@
-158,11
+158,11
@@
end = struct
p_indent 2; p "out: %s" parsing_out; p_ln ();
);
p "%s" bar_end; p_ln ();
- let
error_count
= !error_count in
- let clr = (if
error_count
= 0 then Green else Red) in
- p "
Errors: %s" (color clr (string_of_int error_count
)); p_ln ();
+ 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
error_count
+ exit
failures
end
let test_cases_from_book =
This page took
0.027161 seconds
and
4
git commands to generate.