aboutsummaryrefslogtreecommitdiff
path: root/test/syntax_error.ml
diff options
context:
space:
mode:
Diffstat (limited to 'test/syntax_error.ml')
-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 ee39001..6387530 100644
--- a/test/syntax_error.ml
+++ b/test/syntax_error.ml
@@ -99,6 +99,10 @@ let missing_ampersand_3 () =
message = "Missing separator between instructions";
}
+let unclose_comment () =
+ _test_instruction {| ! that's it|}
+ { level = Error; loc = _position; message = "Unclosed text" }
+
let test =
( "Syntax Errors",
[
@@ -109,4 +113,5 @@ let test =
Alcotest.test_case "no &" `Quick missing_ampersand_1;
Alcotest.test_case "no &" `Quick missing_ampersand_2;
Alcotest.test_case "no &" `Quick missing_ampersand_3;
+ Alcotest.test_case "unclose_comment" `Quick unclose_comment;
] )