test: cover lowercase compatibility return success

This commit is contained in:
Hermes Agent
2026-09-10 17:00:22 +00:00
parent 1e4f15b486
commit 22c54fb0af
6 changed files with 16 additions and 3 deletions
@@ -49,6 +49,12 @@ class ValidateTypecheckDiagnosticsTests(unittest.TestCase):
self.assertIn("tests/typecheck_function_return_bad.claro", MODULE.EXPECTED)
self.assertIn("tests/typecheck_function_return_good.claro", MODULE.EXPECTED_OK)
def test_includes_lowercase_compatibility_return_success_fixture(self):
self.assertIn(
"tests/typecheck_function_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