test: cover unknown compatibility return expressions

This commit is contained in:
Hermes Agent
2026-09-19 01:43:51 +00:00
parent b79db4f25c
commit 039da8159e
6 changed files with 17 additions and 0 deletions
@@ -71,6 +71,12 @@ class ValidateTypecheckDiagnosticsTests(unittest.TestCase):
MODULE.EXPECTED_OK,
)
def test_includes_unknown_compatibility_function_return_expression_fixture(self):
self.assertIn(
"tests/typecheck_function_compat_unknown_return_expression_bad.claro",
MODULE.EXPECTED,
)
def test_includes_missing_object_name_fixture(self):
self.assertIn(
"tests/typecheck_missing_object_name_bad.claro",
@@ -0,0 +1,4 @@
TEACH square TAKES amount RETURNS NUMBER
CHECK TYPE amount IS NUMBER
RETURN missing
LEARNED