test: cover missing method field values
This commit is contained in:
@@ -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.",
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user