Exemplo n.º 1
0
 def testSingleDict(self):
     target = 'bc'
     expected = (-1, -1)
     observed = findIndicesOfStartsWithEndsWith(target, ['be'])
     self.assertEqual(expected, observed)
Exemplo n.º 2
0
 def testFirst(self):
     target = 'aa'
     expected = (0, 1)
     observed = findIndicesOfStartsWithEndsWith(target, self.simpleWordList)
     self.assertEqual(expected, observed)
Exemplo n.º 3
0
 def testLast(self):
     target = 'de'
     expected = (7, 7)
     observed = findIndicesOfStartsWithEndsWith(target, self.simpleWordList)
     self.assertEqual(expected, observed)
Exemplo n.º 4
0
 def testAbsent(self):
     target = 'bb'
     expected = (-1, -1)
     observed = findIndicesOfStartsWithEndsWith(target, self.simpleWordList)
     self.assertEqual(expected, observed)