test: cover division return diagnostics
This commit is contained in:
@@ -40,6 +40,9 @@ EXPECTED = {
|
||||
"tests/typecheck_function_return_multiplication_bad.claro": [
|
||||
"tests/typecheck_function_return_multiplication_bad.claro:3: Type mismatch for return from total: multiplication needs NUMBER values, but \"oops\" looks like TEXT.",
|
||||
],
|
||||
"tests/typecheck_function_return_division_bad.claro": [
|
||||
"tests/typecheck_function_return_division_bad.claro:3: Type mismatch for return from total: division needs NUMBER values, but \"oops\" looks like TEXT.",
|
||||
],
|
||||
"tests/typecheck_method_return_subtraction_bad.claro": [
|
||||
"tests/typecheck_method_return_subtraction_bad.claro:6: Type mismatch for return from Player.total: subtraction needs NUMBER values, but \"oops\" looks like TEXT.",
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user