diff options
| author | Chimrod <> | 2025-03-24 15:01:18 +0100 | 
|---|---|---|
| committer | Chimrod <> | 2025-03-24 15:01:18 +0100 | 
| commit | 166ffdefbcf55ddc709ab2ab197c83af51236e05 (patch) | |
| tree | 4a8e966d1e1fb817b67c71e2c04cbd53bcec9323 /test | |
| parent | 682a09b377ae85de6b59b481af4b7d0812f4b456 (diff) | |
Added a new specific error message
Diffstat (limited to 'test')
| -rw-r--r-- | test/syntax_error.ml | 7 | 
1 files changed, 7 insertions, 0 deletions
diff --git a/test/syntax_error.ml b/test/syntax_error.ml index 99f324a..9d51cf3 100644 --- a/test/syntax_error.ml +++ b/test/syntax_error.ml @@ -284,6 +284,12 @@ let unexpected_bracket () =    _test_instruction {|"<<a[]]>>"|} expected;    _test_instruction "'<<rand(1,2))>>'" expected +let missing_operator () = +  _test_instruction {| +'' + $func('f', '')  '' +|} +    { level = Error; loc = _position; message = "Missing operator before text" } +  let test =    ( "Syntax Errors",      [ @@ -308,4 +314,5 @@ let test =        Alcotest.test_case "+ =" `Quick unknown_operator;        Alcotest.test_case "'<<''>>'" `Quick nested_string_mess;        Alcotest.test_case "a[]]" `Quick unexpected_bracket; +      Alcotest.test_case "Missing +" `Quick missing_operator;      ] )  | 
