This commit is contained in:
parent
19d1598b3e
commit
2bf081c0fc
5
main.py
5
main.py
@ -7,8 +7,3 @@
|
|||||||
def is_hello_world(text : str):
|
def is_hello_world(text : str):
|
||||||
return text is not None and text.strip().lower() == "hello world"
|
return text is not None and text.strip().lower() == "hello world"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
print(is_hello_world("ok"))
|
|
||||||
print(is_hello_world("Hello World"))
|
|
2
tests.py
2
tests.py
@ -6,7 +6,7 @@ from main import is_hello_world
|
|||||||
class TestProject(unittest.TestCase):
|
class TestProject(unittest.TestCase):
|
||||||
|
|
||||||
def test_when_text_is_hello_world_with_maj_then_work(self):
|
def test_when_text_is_hello_world_with_maj_then_work(self):
|
||||||
self.assertTrue(is_hello_world("Hello world"))
|
self.assertTrue(is_hello_world("Hello world NOOOO"))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
Reference in New Issue
Block a user