2020-01-06 21:05:25 +04:00
|
|
|
open Cli_expect
|
|
|
|
|
|
|
|
let%expect_test _ =
|
|
|
|
run_ligo_bad [ "compile-contract" ; "../../test/contracts/negative/error_syntax.ligo" ; "main" ] ;
|
|
|
|
[%expect {|
|
2020-01-31 22:31:51 +04:00
|
|
|
ligo: : Parse error in file "error_syntax.ligo", line 1, characters 16-17, after "bar" and before "-":
|
2020-01-31 19:13:56 +04:00
|
|
|
15: <syntax error> {}
|
2020-01-09 21:59:10 +04:00
|
|
|
|
|
|
|
|
|
|
|
If you're not sure how to fix this error, you can
|
|
|
|
do one of the following:
|
|
|
|
|
|
|
|
* Visit our documentation: https://ligolang.org/docs/intro/what-and-why/
|
|
|
|
* Ask a question on our Discord: https://discord.gg/9rhYaEt
|
|
|
|
* Open a gitlab issue: https://gitlab.com/ligolang/ligo/issues/new
|
|
|
|
* Check the changelog by running 'ligo changelog' |} ] ;
|
|
|
|
|
2020-02-03 13:06:28 +04:00
|
|
|
run_ligo_bad [ "compile-contract" ; "../../test/contracts/negative/error_function_arguments.religo" ; "main" ] ;
|
2020-02-02 21:08:16 +04:00
|
|
|
[%expect {|
|
2020-02-03 12:30:42 +04:00
|
|
|
ligo: in file "error_function_arguments.religo", line 1, characters 14-27. : It looks like you are defining a function, however we do not
|
|
|
|
understand the parameters declaration.
|
|
|
|
Examples of valid functions:
|
|
|
|
let x = (a: string, b: int) : int => 3;
|
|
|
|
let tuple = ((a, b): (int, int)) => a + b;
|
|
|
|
let x = (a: string) : string => "Hello, " ++ a;
|
|
|
|
{"location":"in file \"basic.religo\", line 1, characters 14-27"}
|
2020-02-02 21:08:16 +04:00
|
|
|
|
|
|
|
|
|
|
|
If you're not sure how to fix this error, you can
|
|
|
|
do one of the following:
|
|
|
|
|
|
|
|
* Visit our documentation: https://ligolang.org/docs/intro/what-and-why/
|
|
|
|
* Ask a question on our Discord: https://discord.gg/9rhYaEt
|
|
|
|
* Open a gitlab issue: https://gitlab.com/ligolang/ligo/issues/new
|
|
|
|
* Check the changelog by running 'ligo changelog' |} ] ;
|
|
|
|
|