cs50/problems

CS50P Week 8: pset "Cookie Jar" accepts and passes the test requirement when given the empty example for test_jar.py

Closed this issue ยท 0 comments

Makaze commented

check50 shows a passing grade when given the example test_jar.py file provided in the Hints section of the pset page:

from jar import Jar


def test_init():
    ...


def test_str():
    jar = Jar()
    assert str(jar) == ""
    jar.deposit(1)
    assert str(jar) == "๐Ÿช"
    jar.deposit(11)
    assert str(jar) == "๐Ÿช๐Ÿช๐Ÿช๐Ÿช๐Ÿช๐Ÿช๐Ÿช๐Ÿช๐Ÿช๐Ÿช๐Ÿช๐Ÿช"


def test_deposit():
    ...


def test_withdraw():
    ...

This code should not pass without filling out the functions.