cs50 / problems

Checks for check50
134 stars 227 forks source link

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

Open Makaze opened 8 months ago

Makaze commented 8 months ago

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.