test: cover text operands in multiplication diagnostics

This commit is contained in:
Hermes Agent
2026-09-07 06:30:38 +00:00
parent 2cf5aaf3a9
commit 562e53b3b4
5 changed files with 23 additions and 2 deletions
+3
View File
@@ -113,6 +113,9 @@ EXPECTED = {
"tests/typecheck_object_field_subtraction_bad.claro": [
"tests/typecheck_object_field_subtraction_bad.claro:8: Type mismatch for field player.score: expected NUMBER, but this value looks like TEXT.",
],
"tests/typecheck_object_field_multiplication_bad.claro": [
"tests/typecheck_object_field_multiplication_bad.claro:8: Type mismatch for field player.score: expected NUMBER, but this value looks like TEXT.",
],
"tests/typecheck_object_field_text_expression_bad.claro": [
"tests/typecheck_object_field_text_expression_bad.claro:8: Type mismatch for field player.name: expected TEXT, but this value looks like NUMBER.",
],