示例#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)