Skip to content

Commit

Permalink
sum-of-multiples: Update tests to version 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lekum authored and Nathan Parsons committed Oct 25, 2017
1 parent 94da359 commit 834cb96
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion exercises/sum-of-multiples/sum_of_multiples_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from sum_of_multiples import sum_of_multiples


# test cases adapted from `x-common//canonical-data.json` @ version: 1.0.0
# Tests adapted from `problem-specifications//canonical-data.json` @ v1.1.0

class SumOfMultiplesTest(unittest.TestCase):
def test_multiples_of_3_or_5_up_to_1(self):
Expand All @@ -21,6 +21,9 @@ def test_multiples_of_3_or_5_up_to_1(self):
def test_multiples_of_3_or_5_up_to_4(self):
self.assertEqual(sum_of_multiples(4, [3, 5]), 3)

def test_multiples_of_3_up_to_7(self):
self.assertEqual(sum_of_multiples(7, [3]), 9)

def test_multiples_of_3_or_5_up_to_10(self):
self.assertEqual(sum_of_multiples(10, [3, 5]), 23)

Expand Down

0 comments on commit 834cb96

Please sign in to comment.