Exemplo n.º 1
0
 def testPermCheckValid(self):
     self.assertEqual(codility.permCheck([4,1,3,2]),1) 
Exemplo n.º 2
0
 def testPermCheckTwoElementsNonConsecutive(self):
     self.assertEqual(codility.permCheck([1,6]),0)
Exemplo n.º 3
0
 def testPermCheckDoubleElementConsecutiveNotOne(self):
     self.assertEqual(codility.permCheck([4,5]),0)
Exemplo n.º 4
0
 def testPermCheckSingleElementIsOne(self):
     self.assertEqual(codility.permCheck([1]),1)
Exemplo n.º 5
0
 def testPermCheckSingleElementNotOne(self):
     self.assertEqual(codility.permCheck([4]),0)
Exemplo n.º 6
0
 def testPermCheckInValid(self):
     self.assertEqual(codility.permCheck([4,1,3]),0)