Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

007-filter_by_substring does not verify that filter condition is applicable #45

Open
Tracked by #44
jesyspa opened this issue Oct 1, 2024 · 0 comments
Open
Tracked by #44
Labels
weak postcondition The postcondition is (much) weaker than what is specified in the prompt

Comments

@jesyspa
Copy link
Collaborator

jesyspa commented Oct 1, 2024

The method for the check is not verified at all.

Suggested improvements:

  • [] Add a postcondition to checkSubstring (possibly relate it to a function).
  • [] Specify that filter_by_substring returns a subarray of the original array.
  • [] Specify that filter_by_substring returns precisely the elements that pass the filter.
@jesyspa jesyspa added the weak postcondition The postcondition is (much) weaker than what is specified in the prompt label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
weak postcondition The postcondition is (much) weaker than what is specified in the prompt
Projects
None yet
Development

No branches or pull requests

1 participant