test: cover missing method field values

This commit is contained in:
Hermes Agent
2026-09-21 17:51:04 +00:00
parent b1eba07cf1
commit f590b01bfe
6 changed files with 21 additions and 3 deletions
+3
View File
@@ -446,6 +446,9 @@ EXPECTED = {
"tests/typecheck_method_field_assignment_bad.claro": [
"tests/typecheck_method_field_assignment_bad.claro:5: Type mismatch for field score in Player.add: addition needs NUMBER values, but name looks like TEXT.",
],
"tests/typecheck_method_short_field_missing_value_bad.claro": [
"tests/typecheck_method_short_field_missing_value_bad.claro:5: SET score needs a value after type NUMBER. Add one expression.",
],
"tests/typecheck_method_unknown_field_bad.claro": [
"tests/typecheck_method_unknown_field_bad.claro:5: Object Player has no field level. Check the field name or add HAS level NUMBER to the class.",
],