remove a test
This commit is contained in:
parent
b2be96a0f5
commit
b8ecc596dd
2 changed files with 1 additions and 9 deletions
|
@ -1 +1 @@
|
||||||
let () = print_endline "Hello, World!"
|
let () = ()
|
||||||
|
|
|
@ -3,7 +3,6 @@ open TypeInference
|
||||||
let tests_typeof =
|
let tests_typeof =
|
||||||
let x = Identifier.fresh () in
|
let x = Identifier.fresh () in
|
||||||
let y = Identifier.fresh () in
|
let y = Identifier.fresh () in
|
||||||
let z = Identifier.fresh () in
|
|
||||||
[ (* IntConst *)
|
[ (* IntConst *)
|
||||||
"0", Term.IntConst 0, Some Type.Int
|
"0", Term.IntConst 0, Some Type.Int
|
||||||
; (* int -> int -> int = <fun> *)
|
; (* int -> int -> int = <fun> *)
|
||||||
|
@ -28,13 +27,6 @@ let tests_typeof =
|
||||||
( "(fun x -> x + 1) (1, 2)"
|
( "(fun x -> x + 1) (1, 2)"
|
||||||
, Term.(App (Fun (x, Binop (Var x, Plus, IntConst 1)), Pair (IntConst 1, IntConst 2)))
|
, Term.(App (Fun (x, Binop (Var x, Plus, IntConst 1)), Pair (IntConst 1, IntConst 2)))
|
||||||
, None )
|
, None )
|
||||||
; (* x -> y -> (x -> y -> z) -> z *)
|
|
||||||
( "fun x -> fun y -> fun z -> z x y"
|
|
||||||
, Term.(Fun (x, Fun (y, Fun (z, App (Var z, App (Var x, Var y))))))
|
|
||||||
, Some
|
|
||||||
Type.(
|
|
||||||
Arrow (Var x, Arrow (Var y, Arrow (Arrow (Var x, Arrow (Var y, Var z)), Var z))))
|
|
||||||
)
|
|
||||||
]
|
]
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
Reference in a new issue