aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/syntax_error.ml5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/syntax_error.ml b/test/syntax_error.ml
index 6387530..e9e3fca 100644
--- a/test/syntax_error.ml
+++ b/test/syntax_error.ml
@@ -103,6 +103,10 @@ let unclose_comment () =
_test_instruction {| ! that's it|}
{ level = Error; loc = _position; message = "Unclosed text" }
+let syntax_error () =
+ _test_instruction {|*clr $ cla|}
+ { level = Error; loc = _position; message = "Unexpected character \"\"" }
+
let test =
( "Syntax Errors",
[
@@ -114,4 +118,5 @@ let test =
Alcotest.test_case "no &" `Quick missing_ampersand_2;
Alcotest.test_case "no &" `Quick missing_ampersand_3;
Alcotest.test_case "unclose_comment" `Quick unclose_comment;
+ Alcotest.test_case "Syntax error $" `Quick syntax_error;
] )