test: cover numeric expressions in text fields

This commit is contained in:
Hermes Agent
2026-09-06 01:47:00 +00:00
parent 0fd4ca19e9
commit 3d372988f4
7 changed files with 26 additions and 3 deletions
+3
View File
@@ -107,6 +107,9 @@ EXPECTED = {
"tests/typecheck_object_field_compound_bad.claro": [
"tests/typecheck_object_field_compound_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.",
],
"tests/typecheck_object_field_check_type_text_bad.claro": [
"tests/typecheck_object_field_check_type_text_bad.claro:7: Type check failed: expected NUMBER, but player.name looks like TEXT.",
],