Exemple #1
0
 def test_is_definitely_prime_2(self):
     actual = pyprime.is_definitely_prime(12)
     expected = False
     self.assertEqual(expected, actual)
Exemple #2
0
 def test_is_definitely_prime_5(self):
     with self.assertRaises(ValueError):
         _ = pyprime.is_definitely_prime(-1)
Exemple #3
0
 def test_is_definitely_prime_1(self):
     actual = pyprime.is_definitely_prime(11)
     expected = True
     self.assertEqual(expected, actual)