aboutsummaryrefslogtreecommitdiff
path: root/test/literals.ml
diff options
context:
space:
mode:
Diffstat (limited to 'test/literals.ml')
-rw-r--r--test/literals.ml15
1 files changed, 15 insertions, 0 deletions
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 {|"<<expr2>>"|}
+ [
+ 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;
] )