aboutsummaryrefslogtreecommitdiff
path: root/test/type_of.ml
diff options
context:
space:
mode:
authorChimrod <>2024-06-06 15:11:05 +0200
committerChimrod <>2024-06-06 15:11:05 +0200
commit89c19613764368afba6659e8586dec010c9b9d6b (patch)
tree803ad12c0b9b7effc0e5d0b50ce049f036fa0811 /test/type_of.ml
parent4535058e48fc8edc44be20b92a182279eb9e1569 (diff)
Forgot the case where + is used as a concatenation operator
Diffstat (limited to 'test/type_of.ml')
-rw-r--r--test/type_of.ml3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/type_of.ml b/test/type_of.ml
index d2be5e7..aac928e 100644
--- a/test/type_of.ml
+++ b/test/type_of.ml
@@ -73,6 +73,8 @@ let wrong_predicate () =
};
]
+let concat_text () = _test_instruction {|$a = 'A' + 1|} []
+
let test =
( "Typechecking",
[
@@ -90,4 +92,5 @@ let test =
Alcotest.test_case "gt(int, str)" `Quick type_comparaison_gt';
Alcotest.test_case "Comparaison Mismatch" `Quick type_comparaison_mismatch;
Alcotest.test_case "Wrong predicate" `Quick wrong_predicate;
+ Alcotest.test_case "+(int, str)" `Quick concat_text;
] )