Skip to content
Draft
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__pycache__/
5 changes: 5 additions & 0 deletions hello_world.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
def hello_world():
return "hello world"

if __name__ == "__main__":
print(hello_world())
9 changes: 9 additions & 0 deletions test_hello_world.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import unittest
from hello_world import hello_world

class TestHelloWorld(unittest.TestCase):
def test_hello_world(self):
self.assertEqual(hello_world(), "hello world")

if __name__ == '__main__':
unittest.main()