Skip to content

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

Open
@DRY411S

Description

@DRY411S
:) 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.

Metadata

Metadata

Assignees

Labels

CS50PCS50 Python

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions