Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ in the browser or in a local installation of vs code) for more info [go here](ht
![Screenshot](codespace_usage.png)
3. To run the starter program, in a terminal run python main.py, or open the main.py file and click the play button at the top right of the editor
![Screenshot](codespace_run_file.png)

# Test
6 changes: 6 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,11 @@ def main():
user_name = get_user_name()
greet_user(user_name)

def test_function():
assert get_user_name() == "John", "Test case 1 failed"
assert get_user_name() == "Jane", "Test case 2 failed"
assert get_user_name() == "Alice", "Test case 3 failed"
print("All test cases passed successfully.")

if __name__ == "__main__":
main()