Example #1
0
 def testShouldFindNextPrime13(self):
   self.assertEqual(findNextPrime(12),13)
Example #2
0
 def testShouldFindNextPrime853(self):
   self.assertEqual(findNextPrime(840),853)
Example #3
0
 def testShouldFindNextPrime11(self):
   self.assertEqual(findNextPrime(11),11)
Example #4
0
 def testShouldNotReturn13(self):
   self.assertNotEqual(findNextPrime(11),13)
Example #5
0
 def testShouldFindNextPrime29(self):
   self.assertEqual(findNextPrime(24),29)