Beispiel #1
0
 def test_split_sum_one(self):
     assert split.split_sum([1, 2, 3, 4], 1) == 10
Beispiel #2
0
 def test_split_sum_painter_five(self):
     assert split.split_sum([1] * 9, 5) == 2
Beispiel #3
0
 def test_split_sum_painter_equal(self):
     assert split.split_sum([1] * 12, 12) == 1
Beispiel #4
0
 def test_split_sum_painter_three(self):
     assert split.split_sum([1] * 6, 3) == 2
Beispiel #5
0
 def test_split_sum_sample(self):
     assert split.split_sum([5, 1, 2, 7, 3, 4], 3) == 8
Beispiel #6
0
 def test_split_sum_all(self):
     assert split.split_sum([1, 2, 3, 4], 4) == 4
Beispiel #7
0
 def test_split_sum_three(self):
     assert split.split_sum([1, 2, 3, 4], 3) == 4
Beispiel #8
0
 def test_split_sum_two(self):
     assert split.split_sum([1, 2, 3, 4], 2) == 6