예제 #1
0
 def test_equals(self):
     self.assertEqual(count_sel([-3, -2, -1, 3, 4, -5, -5, 5, -1, -5]),
                      [10, 7, 5, [[-5], 3]])
예제 #2
0
 def test_equals_5(self):
     self.assertEqual(count_sel([
         4, 4, 2, -3, 1, 4, 3, 2, 0, -5, 2, -2, -2, -5]),
         [14, 8, 4, [[2, 4], 3]])
예제 #3
0
 def test_equals_3(self):
     self.assertEqual(count_sel([4, -5, 1, -5, 2, 4, -1, 4, -1, 1]),
                      [10, 5, 1, [[4], 3]])
예제 #4
0
 def test_equals_4(self):
     self.assertEqual(count_sel([5, -1, 1, -1, -2, 5, 0, -2, -5, 3]),
                      [10, 7, 4, [[-2, -1, 5], 2]])
예제 #5
0
 def test_equals_2(self):
     self.assertEqual(count_sel([-2, 4, 4, -2, -2, -1, 3, 5, -5, 5]),
                      [10, 6, 3, [[-2], 3]])