test: cover empty compatibility function returns
This commit is contained in:
@@ -120,6 +120,12 @@ class ValidateTypecheckDiagnosticsTests(unittest.TestCase):
|
||||
MODULE.EXPECTED,
|
||||
)
|
||||
|
||||
def test_includes_compatibility_function_empty_return_fixture(self):
|
||||
self.assertIn(
|
||||
"tests/typecheck_function_compat_empty_return_bad.claro",
|
||||
MODULE.EXPECTED,
|
||||
)
|
||||
|
||||
def test_includes_empty_compatibility_method_return_fixture(self):
|
||||
self.assertIn(
|
||||
"tests/typecheck_method_compat_empty_return_bad.claro",
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
TEACH square TAKES amount RETURNS NUMBER
|
||||
CHECK TYPE amount IS NUMBER
|
||||
RETURN
|
||||
LEARNED
|
||||
Reference in New Issue
Block a user