test: cover missing method returns
This commit is contained in:
@@ -47,6 +47,9 @@ class ValidateTypecheckDiagnosticsTests(unittest.TestCase):
|
||||
def test_includes_missing_function_return_fixture(self):
|
||||
self.assertIn("tests/typecheck_function_missing_return_bad.claro", MODULE.EXPECTED)
|
||||
|
||||
def test_includes_missing_method_return_fixture(self):
|
||||
self.assertIn("tests/typecheck_method_missing_return_bad.claro", MODULE.EXPECTED)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
CLASS Player
|
||||
TEACH score amount RETURNS NUMBER
|
||||
SAY amount
|
||||
END
|
||||
END
|
||||
Reference in New Issue
Block a user