aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChimrod <>2023-11-09 12:42:37 +0100
committerChimrod <>2023-11-09 13:05:24 +0100
commit1e182dca2972fbd29e50f611dbf12eb28d6cdd95 (patch)
tree182fd6635e597947f3b71389d5d730ed86418d16 /test
parent5acc63c0653b363d3d6dc9217e0a29d7e44cbcaa (diff)
Added a test
Diffstat (limited to 'test')
-rw-r--r--test/nested_string.ml2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/nested_string.ml b/test/nested_string.ml
index 3338fa3..f674ee2 100644
--- a/test/nested_string.ml
+++ b/test/nested_string.ml
@@ -22,6 +22,7 @@ let string_variable () = _test_instruction {|"<<$variable>>"|} report
let integer () = _test_instruction {|"<<123>>"|} []
let integer_variable () = _test_instruction {|"<<variable>>"|} []
+let indexed_text () = _test_instruction {|variable['<<$variable>>']|} report
let test =
( "Nested_strings checker",
@@ -31,4 +32,5 @@ let test =
Alcotest.test_case "Integer" `Quick integer;
Alcotest.test_case "String" `Quick string;
Alcotest.test_case "Integer variable" `Quick integer_variable;
+ Alcotest.test_case "Indexed text" `Quick indexed_text;
] )