home
/
code
/
tiger.ml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Expose option module to the rest of the program
[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
038cd84
..
4d3287d
100644
(file)
--- a/
compiler/src/lib/tiger/tiger_test.ml
+++ b/
compiler/src/lib/tiger/tiger_test.ml
@@
-28,18
+28,7
@@
open Printf
module List = ListLabels
module String = StringLabels
module List = ListLabels
module String = StringLabels
-module Option : sig
- type 'a t = 'a option
-
- val map : 'a t -> ('a -> 'b) -> 'b t
-end = struct
- type 'a t = 'a option
-
- let map t f =
- match t with
- | None -> None
- | Some x -> Some (f x)
-end
+module Opt = Tiger_opt
(* TODO: ~expect:Output of 'a | Exception of (exn -> bool) *)
type t =
(* TODO: ~expect:Output of 'a | Exception of (exn -> bool) *)
type t =
@@
-214,7
+203,7
@@
let run tests =
| Ok produced ->
let (out_stat, out_msg) =
match
| Ok produced ->
let (out_stat, out_msg) =
match
- Opt
ion
.map expect_output (fun expected -> expected = produced)
+ Opt.map expect_output (fun expected -> expected = produced)
with
| None ->
(Skip, "expected output not provided")
with
| None ->
(Skip, "expected output not provided")
This page took
0.018717 seconds
and
4
git commands to generate.