Example #1
0
 def test_prime_numbers(self):
     prime = PrimeNumbers(11)
     self.assertEqual(prime.rwh(),[2,3,5,7,11])
Example #2
0
 def test_prime_numbers_for_two(self):
     prime = PrimeNumbers(2)
     self.assertEqual(prime.rwh(),[2])
Example #3
0
 def test_prime_numbers_for_one(self):
     prime = PrimeNumbers(1)
     self.assertEqual(prime.rwh(),[])
Example #4
0
 def test_prime_numbers(self):
     prime = PrimeNumbers(11)
     self.assertEqual(prime.rwh(), [2, 3, 5, 7, 11])
Example #5
0
 def test_prime_numbers_for_two(self):
     prime = PrimeNumbers(2)
     self.assertEqual(prime.rwh(), [2])
Example #6
0
 def test_prime_numbers_for_one(self):
     prime = PrimeNumbers(1)
     self.assertEqual(prime.rwh(), [])