test: cover lowercase compatibility return success

This commit is contained in:
Hermes Agent
2026-09-10 19:03:48 +00:00
parent 22c54fb0af
commit 57db2ba3e2
5 changed files with 15 additions and 2 deletions
@@ -55,6 +55,12 @@ class ValidateTypecheckDiagnosticsTests(unittest.TestCase):
MODULE.EXPECTED_OK,
)
def test_includes_lowercase_compatibility_syntax_return_success_fixture(self):
self.assertIn(
"tests/typecheck_function_compat_lowercase_return_good.claro",
MODULE.EXPECTED_OK,
)
def test_includes_missing_function_return_fixture(self):
self.assertIn("tests/typecheck_function_missing_return_bad.claro", MODULE.EXPECTED)
@@ -0,0 +1,6 @@
TEACH square TAKES amount returns NUMBER
CHECK TYPE amount IS NUMBER
RETURN amount
LEARNED
CALL square WITH 4