test: cover numeric method field assignment

This commit is contained in:
Hermes Agent
2026-09-13 08:53:47 +00:00
parent d7df4591a4
commit 8e9ab3c711
5 changed files with 20 additions and 2 deletions
@@ -164,6 +164,12 @@ class ValidateTypecheckDiagnosticsTests(unittest.TestCase):
MODULE.EXPECTED,
)
def test_includes_method_field_assignment_success_fixture(self):
self.assertIn(
"tests/typecheck_method_field_assignment_good.claro",
MODULE.EXPECTED_OK,
)
def test_release_validation_runs_method_call_fixture(self):
result = subprocess.run(
[str(ROOT / "claro"), "validate"],
@@ -0,0 +1,11 @@
CLASS Player
HAS score NUMBER
TEACH add RETURNS NUMBER
SET score score + 1
RETURN score
END
END
NEW Player player
DO player.add