cs50 / check50

This is check50, a command-line program with which you can check the correctness of your programs.
GNU General Public License v3.0
401 stars 268 forks source link

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

Open DRY411S opened 2 years ago

DRY411S commented 2 years ago
:) 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.