typecheck: diagnose missing object names
This commit is contained in:
@@ -65,6 +65,12 @@ class ValidateTypecheckDiagnosticsTests(unittest.TestCase):
|
||||
MODULE.EXPECTED_OK,
|
||||
)
|
||||
|
||||
def test_includes_missing_object_name_fixture(self):
|
||||
self.assertIn(
|
||||
"tests/typecheck_missing_object_name_bad.claro",
|
||||
MODULE.EXPECTED,
|
||||
)
|
||||
|
||||
def test_includes_lowercase_compatibility_return_success_fixture(self):
|
||||
self.assertIn(
|
||||
"tests/typecheck_function_lowercase_return_good.claro",
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
CLASS Player
|
||||
HAS score NUMBER
|
||||
END
|
||||
|
||||
NEW Player
|
||||
Reference in New Issue
Block a user