Skip to content

Commit

Permalink
Edits to documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sarcodian committed Jan 23, 2017
1 parent ccd15a0 commit 6c3c268
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Empty file.
5 changes: 5 additions & 0 deletions challenge_7/python/sarcodian/src/challenge_7.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
def missing_int(L):
'''
Ask for a list and return the missing value
'''

sum_n = 0
sum_n_less_1 = 0
Expand All @@ -10,3 +13,5 @@ def missing_int(L):
sum_n_less_1 += i

return sum_n - sum_n_less_1


1 change: 0 additions & 1 deletion challenge_7/python/sarcodian/src/challenge_7_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
class TestBinaryMethods(unittest.TestCase):

def test_missingInt(self):
""" Tests from the READ.me """

self.assertEqual(missing_int([1,3,4,0]), 2)
self.assertEqual(missing_int([1,2,3]), 0)
Expand Down

0 comments on commit 6c3c268

Please sign in to comment.