check50
cs50/problems/2022/python/numb3rs
:) numb3rs.py exists
Log
checking that numb3rs.py exists...
:) numb3rs.py prints True for 127.0.0.1
Log
running python3 testing.py...
sending input 127.0.0.1...
checking for output "True"...
checking that program exited with status 0...
:) numb3rs.py prints True for 255.255.255.255
Log
running python3 testing.py...
sending input 255.255.255.255...
checking for output "True"...
checking that program exited with status 0...
:) numb3rs.py prints True for 140.247.235.144
Log
running python3 testing.py...
sending input 140.247.235.144...
checking for output "True"...
checking that program exited with status 0...
:( numb3rs.py prints False for 256.255.255.255
Cause
expected "False", not "True\n"
Log
running python3 testing.py...
sending input 256.255.255.255...
checking for output "False"...
:( numb3rs.py prints False for 64.128.256.512
Cause
expected "False", not "True\n"
Log
running python3 testing.py...
sending input 64.128.256.512...
checking for output "False"...
:) numb3rs.py prints False for 8.8.8
Log
running python3 testing.py...
sending input 8.8.8...
checking for output "False"...
checking that program exited with status 0...
:) numb3rs.py prints False for 10.10.10.10.10
Log
running python3 testing.py...
sending input 10.10.10.10.10...
checking for output "False"...
checking that program exited with status 0...
:) numb3rs.py prints False for 2001:0db8:85a3:0000:0000:8a2e:0370:7334
Log
running python3 testing.py...
sending input 2001:0db8:85a3:0000:0000:8a2e:0370:7334...
checking for output "False"...
checking that program exited with status 0...
:) numb3rs.py prints False for cat
Log
running python3 testing.py...
sending input cat...
checking for output "False"...
checking that program exited with status 0...
:) correct numb3rs.py passes all test_numb3rs.py checks
Log
running pytest test_numb3rs.py...
checking that program exited with status 0...
:( test_numb3rs.py catches numb3rs.py only checking if first byte of IPv4 address is in range
Cause
expected exit code 1, not 0
Log
running pytest test_numb3rs.py...
checking that program exited with status 1...
:) test_numb3rs.py catches numb3rs.py accepting expecting five-byte IPv4 address
Log
running pytest test_numb3rs.py...
checking that program exited with status 1...