2019-05-13 00:56:22 +04:00
|
|
|
open Trace
|
|
|
|
open Test_helpers
|
2019-12-12 17:35:07 +04:00
|
|
|
open Parser.Cameligo
|
2019-05-13 00:56:22 +04:00
|
|
|
|
|
|
|
let basic () : unit result =
|
|
|
|
let%bind _ = User.parse_file "./contracts/new-syntax.mligo" in
|
|
|
|
ok ()
|
|
|
|
|
|
|
|
let simplify () : unit result =
|
|
|
|
let%bind raw = User.parse_file "./contracts/new-syntax.mligo" in
|
2019-12-12 17:35:07 +04:00
|
|
|
let%bind _simpl = Simplify.Cameligo.main raw in
|
2019-05-13 00:56:22 +04:00
|
|
|
ok ()
|
|
|
|
|
|
|
|
let main = "Multifix", [
|
|
|
|
test "basic" basic ;
|
|
|
|
test "simplify" simplify ;
|
|
|
|
]
|