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