-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
high-scores: incorrect solution can pass the tests #1745
Comments
This issue has come up before in #1735. Currently, side effect testing is outside the scope of this exercise. There is a discussion here to include such tests, but I would like to wait and see the consensus there before adding these tests here. Another solution discussed in #1744 would be to convert this track's implementation to use stand-alone functions rather than a class instance, which might make things more clear to students anyway. |
PR #1764 will be merged soon that will make the exercise simpler (using separate functions). |
This issue has been automatically marked as |
Consider the following partial solution to this problem:
This will pass the tests for the functions it implements. However, if latest is called after calling personal_best, it can give the wrong answer. The current tests do not check for this situation.
The text was updated successfully, but these errors were encountered: