Exemple #1
0
 def test2(self):
     # Testing input with zero missing
     assert findMissing([1, 2, 3]) == 0
Exemple #2
0
 def test1(self):
     # Testing input with integer missing other than zero
     assert findMissing([0, 1, 2, 4]) == 3
Exemple #3
0
 def test1(self):
     self.assertEqual(3, findMissing([1,2,4], 0, 2))
Exemple #4
0
 def test4(self):
     self.assertEqual(1, findMissing([2,3,4], 0, 2))
Exemple #5
0
 def test3(self):
     self.assertEqual(2, findMissing([1,3], 0 , 1))
Exemple #6
0
 def test2(self):
     self.assertEqual(4, findMissing([1,2,3,5], 0, 3))