Print Function Tests
This is an example of how you can test the output stream of a student defined function.
This test makes sure the student's function named print_hello()
prints "Hello World"
. It assumes the student's file name is example.py
. Replace the import with whatever you student's file name is.
Note: This code converts the output to all lowercase and removes spaces to compare against the correct value.
Grading Tests:
Sample Solution:
example.py
Last updated