home
/
code
/
tiger.ml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Indicate "OK" for expected errors
[tiger.ml.git]
/
compiler
/
src
/
lib
/
tiger
/
tiger_test.ml
diff --git
a/compiler/src/lib/tiger/tiger_test.ml
b/compiler/src/lib/tiger/tiger_test.ml
index
6a9ca10
..
83e9890
100644
(file)
--- a/
compiler/src/lib/tiger/tiger_test.ml
+++ b/
compiler/src/lib/tiger/tiger_test.ml
@@
-120,19
+120,19
@@
let run tests =
let output_value = None in
match f input with
| exception e ->
let output_value = None in
match f input with
| exception e ->
- let
c, e
=
+ let
status_text, error_text
=
(match e with
| Tiger_error.T e when is_error_expected e ->
(match e with
| Tiger_error.T e when is_error_expected e ->
- (
Green
, Tiger_error.to_string e)
+ (
(color Green "OK")
, Tiger_error.to_string e)
| Tiger_error.T e ->
incr error_count;
| Tiger_error.T e ->
incr error_count;
- (
Red
, Tiger_error.to_string e)
+ (
(color Red "ERROR")
, Tiger_error.to_string e)
| e ->
incr error_count;
| e ->
incr error_count;
- (
Red
, Printexc.to_string e)
+ (
(color Red "ERROR")
, Printexc.to_string e)
)
in
)
in
- ( s "%s: %s"
(color c "ERROR") e
+ ( s "%s: %s"
status_text error_text
, output_status
, output_value
)
, output_status
, output_value
)
This page took
0.028275 seconds
and
4
git commands to generate.