test: cover compatibility alias extra arguments

This commit is contained in:
Hermes Agent
2026-09-10 10:49:02 +00:00
parent 1fb43e306a
commit 8876fd3f15
5 changed files with 21 additions and 1 deletions
@@ -28,6 +28,10 @@ class ValidateTypecheckDiagnosticsTests(unittest.TestCase):
"tests/typecheck_object_alias_method_do_good.claro",
MODULE.EXPECTED_OK,
)
def test_has_compatibility_chained_alias_method_extra_arg_fixture(self):
self.assertTrue(
(ROOT / "tests/typecheck_object_alias_method_call_extra_arg_bad.claro").exists()
)
def test_includes_dedicated_yesno_field_check_success_fixture(self):
self.assertIn(
@@ -0,0 +1,12 @@
CLASS Player
HAS score NUMBER
TEACH add points
CHECK TYPE points IS NUMBER
END
END
NEW Player player
SET alias player
SET second alias
CALL second.add WITH 5, 6