check50

cs50/problems/2022/python/professor


:) professor.py exists

Log
checking that professor.py exists...

:) Little Professor rejects level of 0

Log
running python3 testing.py get_level...
sending input 0...
checking that input was rejected...

:) Little Professor rejects level of 4

Log
running python3 testing.py get_level...
sending input 4...
checking that input was rejected...

:( Little Professor rejects level of "one"

Cause
expected program to reject input, but it did not

Log
running python3 testing.py get_level...
sending input one...
checking that input was rejected...

:) Little Professor accepts valid level

Log
running python3 testing.py get_level...
sending input 1...
checking that program exited with status 0...
running python3 testing.py get_level...
sending input 2...
checking that program exited with status 0...
running python3 testing.py get_level...
sending input 3...
checking that program exited with status 0...

:) At Level 1, Little Professor generates addition problems using 0–9

Log
running python3 testing.py main...
sending input 1...
checking for output "6 + 6 ="...

:) At Level 2, Little Professor generates addition problems using 10–99

Log
running python3 testing.py main...
sending input 2...
checking for output "59 + 63 ="...

:) At Level 3, Little Professor generates addition problems using 100–999

Log
running python3 testing.py main...
sending input 3...
checking for output "964 + 494 ="...

:) Little Professor generates 10 problems before exiting

Log
running python3 testing.py main...
sending input 1...
sending input 12...
sending input 4...
sending input 15...
sending input 10...
sending input 12...
sending input 12...
sending input 10...
sending input 6...
sending input 10...
sending input 12...
checking that program exited with status 0...

:) Little Professor displays number of problems correct

Log
running python3 testing.py main...
sending input 1...
sending input 12...
sending input 4...
sending input 15...
sending input 8...
sending input 8...
sending input 8...
sending input 12...
sending input 12...
sending input 10...
sending input 6...
sending input 10...
sending input 12...
checking for output "9"...
checking that program exited with status 0...

:) Little Professor displays EEE when answer is incorrect

Log
running python3 testing.py main...
sending input 1...
sending input 0...
checking for output "EEE"...

:) Little Professor shows solution after 3 incorrect attempts

Log
running python3 testing.py main...
sending input 1...
sending input 0...
sending input 0...
sending input 0...
checking for output "12"...