From 617d2ee554ccf502c718391aa05b7b72668b83e7 Mon Sep 17 00:00:00 2001
From: Chimrod <>
Date: Sat, 14 Oct 2023 15:00:49 +0200
Subject: Added a new error case

---
 test/syntax_error.ml | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'test')

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;
     ] )
-- 
cgit v1.2.3