01/01OS/tests/sample_test.py

8 lines
191 B
Python

def hello_world():
return "Hello, World!"
# A test function to assert that hello_world() returns the expected string
def test_hello_world():
assert hello_world() == "Hello, World!"