Skip to content

Commit

Permalink
Vinicius garcia e venancio mota
Browse files Browse the repository at this point in the history
  • Loading branch information
dojorio committed Mar 4, 2020
1 parent cc6275b commit 0ab26c3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions 2020/20200304 - miojo - python/dojo.log
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ Qua Mar 4 20:35:39 BRT 2020 - venancio mota e Otavio Cardoso
Qua Mar 4 20:41:08 BRT 2020 - Vinicius garcia e venancio mota
Qua Mar 4 20:47:15 BRT 2020 - Otavio Cardoso e Vinicius garcia
Qua Mar 4 20:52:43 BRT 2020 - venancio mota e Otavio Cardoso
Qua Mar 4 20:58:05 BRT 2020 - Vinicius garcia e venancio mota
6 changes: 6 additions & 0 deletions 2020/20200304 - miojo - python/problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,15 @@ def miojo(temp_1, temp_2):
if temp_1 > temp_2:
return temp_1

if temp_1 < temp_2:
return temp_2

if temp_1 == 6:
return 9

if temp_1 == 4:
return 7

if temp_1 == 5:
if temp_2 == 7:
return 10
Expand Down
4 changes: 4 additions & 0 deletions 2020/20200304 - miojo - python/test_problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ def test_5_8(self):
def test_6_9(self):
self.assertEqual(miojo(6,9), 9)

def test_4_7(self):
self.assertEqual(miojo(4,7), 7)


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

0 comments on commit 0ab26c3

Please sign in to comment.