예제 #1
0
 def test_cutoff_empty_0(self):
     self.assertEqual(0, cutoff([], 0))
예제 #2
0
 def test_cutoff_empty_5(self):
     self.assertEqual(0, cutoff([], 5))
예제 #3
0
 def test_cutoff_five_len_list_2_10(self):
     self.assertEqual(0, cutoff([2, 2, 2, 2, 2], 10))
예제 #4
0
 def test_cutoff_five_len_list_3_3(self):
     self.assertEqual(5, cutoff([3, 6, 9, 12, 15], 3))
예제 #5
0
 def test_cutoff_five_len_list_2_2(self):
     self.assertEqual(5, cutoff([2, 2, 2, 2, 2], 2))
예제 #6
0
 def test_cutoff_five_len_list_2(self):
     self.assertEqual(2, cutoff([1, 2, 3, 4, 5], 2))
예제 #7
0
 def test_cutoff_two_4(self):
     self.assertEqual(0, cutoff([2], 4))
예제 #8
0
 def test_cutoff_two_2(self):
     self.assertEqual(1, cutoff([2], 2))
예제 #9
0
 def test_cutoff_zero_5(self):
     self.assertEqual(1, cutoff([0], 5))