aboutsummaryrefslogtreecommitdiff
path: root/test/syntax_error.ml
diff options
context:
space:
mode:
authorChimrod <>2023-10-05 21:18:22 +0200
committerChimrod <>2023-10-05 21:18:22 +0200
commit002ec21cce78961fe5a74c8b51dae0dd55aa4457 (patch)
tree824acef85a0e07366f385312aff3e30315c51ddd /test/syntax_error.ml
parent2602e444277cdf215b34c10ab4f872dbce8348d0 (diff)
Added a new error message
Diffstat (limited to 'test/syntax_error.ml')
-rw-r--r--test/syntax_error.ml9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/syntax_error.ml b/test/syntax_error.ml
index b907bc7..2ca615f 100644
--- a/test/syntax_error.ml
+++ b/test/syntax_error.ml
@@ -75,6 +75,14 @@ let act_no_column () =
message = "Invalid `ACT` label. You probably missed a ':'";
}
+let missing_ampersand () =
+ _test_instruction "b = 1 a = 2"
+ {
+ level = Error;
+ loc = _position;
+ message = "Missing separator between instructions";
+ }
+
let test =
( "Syntax Errors",
[
@@ -82,4 +90,5 @@ let test =
Alcotest.test_case "elseif" `Quick elseif_no_column;
Alcotest.test_case "(1" `Quick unclosed_paren;
Alcotest.test_case "act 1" `Quick act_no_column;
+ Alcotest.test_case "no &" `Quick missing_ampersand;
] )