check50

cs50/problems/2022/python/lines


:) lines.py exists

Log
checking that lines.py exists...

:) lines.py exits given zero command-line arguments

Log
running python3 lines.py...

:) lines.py exits given a file without a .py extension

Log
running python3 lines.py invalid_extension.txt...

:) lines.py exits given more than one command-line argument

Log
running python3 lines.py four.py two-thousand-fifty-eight.py...

:) lines.py yields 3 given a file with 3 lines of code

Log
running python3 lines.py three.py...
checking for output "3"...
checking that program exited with status 0...

:) lines.py yields 4 given a file with 4 lines and whitespace

Log
running python3 lines.py four.py...
checking for output "4"...
checking that program exited with status 0...

:( lines.py yields 5 given a file with 5 lines, whitespace, and comments

Cause
expected: "5"     actual:   "7\n"

Log
running python3 lines.py five.py...
checking for output "5"...

Expected Output:
"5"
Actual Output:
"7\n"

:| lines.py yields 9 given a file with 9 lines, whitespace, comments, and docstrings

Cause
can't check until a frown turns upside down

:| lines.py yields 2058 given 2058 lines of code in an open-source library file

Cause
can't check until a frown turns upside down