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