check50
cs50/problems/2022/python/grocery
:) grocery.py exists
Log
checking that grocery.py exists...
:) input of EOF halts program
Log
running python3 grocery.py...
sending EOF...
checking that program exited with status 0...
:) input of "apple" and "banana" yields "1 APPLE 1 BANANA"
Log
running python3 grocery.py...
sending input apple...
sending input banana...
sending EOF...
checking for output "1 APPLE\n1 BANANA"...
:) input of "strawberry" and "strawberry" yields "2 STRAWBERRY"
Log
running python3 grocery.py...
sending input strawberry...
sending input strawberry...
sending EOF...
checking for output "2 STRAWBERRY"...
:) input of "mango", "sugar", and "mango" yields "2 MANGO 1 SUGAR"
Log
running python3 grocery.py...
sending input mango...
sending input sugar...
sending input mango...
sending EOF...
checking for output "2 MANGO\n1 SUGAR"...
:) input of "tortilla" and "sweet potato" yields "1 SWEET POTATO 1 TORTILLA"
Log
running python3 grocery.py...
sending input tortilla...
sending input sweet potato...
sending EOF...
checking for output "1 SWEET POTATO\n1 TORTILLA"...