test: cover compatibility method text concatenation

This commit is contained in:
Hermes Agent
2026-09-14 22:01:51 +00:00
parent 7a165f8125
commit 43d596d85b
7 changed files with 33 additions and 1 deletions
@@ -198,6 +198,12 @@ class ValidateTypecheckDiagnosticsTests(unittest.TestCase):
MODULE.EXPECTED_OK,
)
def test_includes_compatibility_method_text_concatenation_success_fixture(self):
self.assertIn(
"tests/typecheck_method_compat_text_concat_good.claro",
MODULE.EXPECTED_OK,
)
def test_includes_yesno_method_field_assignment_diagnostics(self):
self.assertIn(
"tests/typecheck_method_yesno_field_assignment_bad.claro",
@@ -0,0 +1,12 @@
CLASS Player
HAS first TEXT
HAS last TEXT
TEACH full_name TAKES suffix
SET first first + suffix
SET last "Dr. " + last
LEARNED
ENDCLASS
NEW Player player
CALL player.full_name WITH "!"