From 75f3eabb46eded01460f7700a75d094100047438 Mon Sep 17 00:00:00 2001 From: Chimrod <> Date: Sat, 14 Dec 2024 23:06:12 +0100 Subject: Added dynamic check mecanism --- test/literals.ml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test/literals.ml') diff --git a/test/literals.ml b/test/literals.ml index f98fa8f..2685538 100644 --- a/test/literals.ml +++ b/test/literals.ml @@ -107,6 +107,20 @@ let multiple_expression () = ] )); ] +let int_expression () = + _test_instruction {|"<>"|} + [ + Tree.Ast.Expression + (Tree.Ast.Literal + ( _position, + [ + T.Expression + (Tree.Ast.Ident + { Tree.Ast.pos = _position; name = "EXPR2"; index = None }); + T.Text ""; + ] )); + ] + let test = ( "Literals", [ @@ -127,4 +141,5 @@ let test = Alcotest.test_case "elements_sequence" `Quick elements_sequence; Alcotest.test_case "expression" `Quick expression; Alcotest.test_case "multiple_expression" `Quick multiple_expression; + Alcotest.test_case "multiple_expression" `Quick int_expression; ] ) -- cgit v1.2.3