home
/
code
/
tiger.ml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix fragile pattern matching
[tiger.ml.git]
/
compiler
/
src
/
lib
/
tiger
/
tiger_test_cases_book.ml
diff --git
a/compiler/src/lib/tiger/tiger_test_cases_book.ml
b/compiler/src/lib/tiger/tiger_test_cases_book.ml
index
92ad429
..
3911f53
100644
(file)
--- a/
compiler/src/lib/tiger/tiger_test_cases_book.ml
+++ b/
compiler/src/lib/tiger/tiger_test_cases_book.ml
@@
-85,7
+85,7
@@
let is_error_expected_parsing_of_filename =
let module E = Tiger_error in
function
| "test49.tig" ->
- Some
(function E.Invalid_syntax _ -> true | _ -> false)
+ Some
Error.is_invalid_syntax
(* TODO: Be more specific - test position *)
| _ ->
(* TODO: Fill-in other expected cases *)
This page took
0.024014 seconds
and
4
git commands to generate.