Exemple #1
0
 def testShouldFind2Pairs(self):
     self.assertEqual(findSockPairs("ABABC"), 2)
Exemple #2
0
 def testShouldFind1Pair(self):
     self.assertEqual(findSockPairs("AA"), 1)
Exemple #3
0
 def testShouldFind1Pair1(self):
     self.assertEqual(findSockPairs("ABCDEFGHIA"), 1)
Exemple #4
0
 def testShouldNotFind2Pairs(self):
     self.assertNotEqual(findSockPairs("ABCDEFGHIA"), 2)
Exemple #5
0
 def testShouldFind5Pairs(self):
     self.assertEqual(findSockPairs("CABBACCC"), 5)