test & dune promote

This commit is contained in:
Lesenechal Remi 2020-01-02 15:02:02 +01:00
parent 42cbabac69
commit 8584bacf83
2 changed files with 8 additions and 1 deletions

View File

@ -932,3 +932,7 @@ let%expect_test _ =
let%expect_test _ = let%expect_test _ =
run_ligo_bad [ "run-function" ; contract "failwith.ligo" ; "failer" ; "1" ] ; run_ligo_bad [ "run-function" ; contract "failwith.ligo" ; "failer" ; "1" ] ;
[%expect {| ligo: Execution failed: {"value":"some_string","type":"string"} |}] [%expect {| ligo: Execution failed: {"value":"some_string","type":"string"} |}]
let%expect_test _ =
run_ligo_bad [ "compile-contract" ; contract "bad_address_format.religo" ; "main" ] ;
[%expect {| ligo: in file "bad_address_format.religo", line 2, characters 25-47. Badly formatted address "KT1badaddr": {"location":"in file \"bad_address_format.religo\", line 2, characters 25-47"} |}]

View File

@ -0,0 +1,3 @@
let main = (parameter: int, storage: address) => {
([]:list(operation), "KT1badaddr" : address);
};