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

check50 cs50/problems/2022/python/jar is not robust in test_jar.py checking #285

Open
DRY411S opened this issue Aug 25, 2022 · 0 comments
Open

Comments

@DRY411S
Copy link

DRY411S commented Aug 25, 2022

:) jars.py exists
:) Jar's constructor initializes a cookie jar with given capacity
:) Jar's constructor raises ValueError when called with negative capacity
:) Empty jar prints zero cookies
:) Jar prints total number of cookies deposited
:) Jar's deposit method raises ValueError when deposited cookies exceed the jar's capacity
:) Jar's withdraw method removes cookies from the jar's size
:) Jar's withdraw method raises ValueError when withdrawn cookies exceed jar's size
:) Implementation of Jar passes all tests in test_jar.py
:) test_jar.py contains at least four functions

The 4 functions in test_jar.py can be empty and have no executable code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant