From 7ff1e525b39a42f94e32c65f8c2aac0a52465dc3 Mon Sep 17 00:00:00 2001 From: Chimrod <> Date: Sat, 7 Oct 2023 15:05:25 +0200 Subject: Added the error message in case of unclosed quote in a text --- test/syntax_error.ml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/syntax_error.ml') 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; ] ) -- cgit v1.2.3