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