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 "Thirteen milli..."

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:
Thirteen million, three hundred eighty thousand, four hundred eighty minutes\n

:( 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 "Twelve 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:
Twelve million, three hundred twenty-seven thousand, eight hundred forty minutes\n

:( 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 "Fifteen millio..."

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:
Fifteen million, four hundred eighty-four thousand, three hundred twenty minutes\n

:( 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 "Two million, o..."

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:
Two million, one hundred sixteen thousand, eight hundred minutes\n

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

Cause
expected "Eight hundred ...", not "Thirteen milli..."

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:
Thirteen million, six hundred sixty-one thousand, two hundred eighty minutes\n

:) 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 2

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