Skip to content

Commit

Permalink
Otavio Cardoso e Vinicius Garcia
Browse files Browse the repository at this point in the history
  • Loading branch information
dojorio committed Mar 4, 2020
1 parent d65ef1c commit d2c8d8c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions 2020/20200304 - miojo - python/dojo.log
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Qua Mar 4 20:06:49 BRT 2020 - Vinicius Garcia e venancio mota
Qua Mar 4 20:12:07 BRT 2020 - Otavio Cardoso e Vinicius Garcia
4 changes: 4 additions & 0 deletions 2020/20200304 - miojo - python/problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@
# -*- coding: utf-8 -*-

def miojo(temp_1, temp_2):
if temp_1 == 2:
return 5


return 3
7 changes: 5 additions & 2 deletions 2020/20200304 - miojo - python/test_problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ class TestProblem(unittest.TestCase):
def test_1_1(self):
self.assertEqual(miojo(1,1), 3)

def test_1_2(self):
self.assertEqual(miojo(2,5), 5)
def test_2_5(self):
self.assertEqual(miojo(2,5), 5)

def test_2_7(self):
self.assertEqual(miojo(2,7), 7)


if __name__ == "__main__":
Expand Down

0 comments on commit d2c8d8c

Please sign in to comment.