aboutsummaryrefslogtreecommitdiff
path: root/test/syntax_error.ml
diff options
context:
space:
mode:
authorChimrod <>2023-10-07 15:05:25 +0200
committerChimrod <>2023-10-07 15:05:25 +0200
commit7ff1e525b39a42f94e32c65f8c2aac0a52465dc3 (patch)
tree45e3557a12fe868ddd3dc96488129244ef807ec9 /test/syntax_error.ml
parent97ab5c9a21166f0bffee482210d69877fd6809fa (diff)
Added the error message in case of unclosed quote in a text
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;
] )