check50

cs50/problems/2022/python/seasons


:) seasons.py and test_seasons.py exist

Log
checking that seasons.py exists...
checking that test_seasons.py exists...

:( Input of "1999-01-01" yields "Five hundred twenty-five thousand, six hundred minutes" when today is 2000-01-01

Cause
expected "Five hundred t...", not "Twelve million..."

Log
running python3 testing.py...
sending input 1999-01-01...
checking for output "Five hundred twenty-five thousand, six hundred minutes"...

Expected Output:
Five hundred twenty-five thousand, six hundred minutes
Actual Output:
Twelve million, six hundred twenty-eight thousand, eight hundred minutes

:( Input of "2001-01-01" yields "One million, fifty-one thousand, two hundred minutes" when today is 2003-01-01

Cause
expected "One million, f...", not "Eleven million..."

Log
running python3 testing.py...
sending input 2001-01-01...
checking for output "One million, fifty-one thousand, two hundred minutes"...

Expected Output:
One million, fifty-one thousand, two hundred minutes
Actual Output:
Eleven million, five hundred seventy-six thousand, one hundred sixty minutes

:( Input of "1995-01-01" yields "Two million, six hundred twenty-nine thousand, four hundred forty minutes" when today is 2000-01-1

Cause
expected "Two million, s...", not "Fourteen milli..."

Log
running python3 testing.py...
sending input 1995-01-01...
checking for output "Two million, six hundred twenty-nine thousand, four hundred forty minutes"...

Expected Output:
Two million, six hundred twenty-nine thousand, four hundred forty minutes
Actual Output:
Fourteen million, seven hundred thirty-two thousand, six hundred forty minutes

:( Input of "2020-06-01" yields "Six million, ninety-two thousand, six hundred forty minutes" when today is 2032-01-01

Cause
expected "Six million, n...", not "One million, t..."

Log
running python3 testing.py...
sending input 2020-06-01...
checking for output "Six million, ninety-two thousand, six hundred forty minutes"...

Expected Output:
Six million, ninety-two thousand, six hundred forty minutes
Actual Output:
One million, three hundred sixty-five thousand, one hundred twenty minutes

:( Input of "1998-06-20" yields "Eight hundred six thousand, four hundred minutes" when today is 2000-01-01

Cause
expected "Eight hundred ...", not "Twelve million..."

Log
running python3 testing.py...
sending input 1998-06-20...
checking for output "Eight hundred six thousand, four hundred minutes"...

Expected Output:
Eight hundred six thousand, four hundred minutes
Actual Output:
Twelve million, nine hundred nine thousand, six hundred minutes

:) Input of "February 6th, 1998" prompts program to exit with sys.exit

Log
running python3 testing.py...
sending input February 6th, 1998...
running python3 testing.py...
sending input February 6th, 1998...

:( seasons.py passes all checks in test_seasons.py

Cause
expected exit code 0, not 1

Log
running pytest test_seasons.py...
checking that program exited with status 0...