示例#1
0
 def test_zero_ten(self):
     self.assertEqual(output_prime_numbers(0, 10), [2, 3, 5, 7])
示例#2
0
 def test_minus_ten_to_ten(self):
     self.assertEqual(output_prime_numbers(-10, 10), [2, 3, 5, 7])
示例#3
0
 def test_wrong_type(self):
     self.assertEqual(output_prime_numbers([], []), "Wrong Type of Data")
示例#4
0
 def no_float_variables(self):
     self.assertEqual(output_prime_numbers(2.0, 6.4), "Wrong Type of Data")
示例#5
0
 def test_negatives_only(self):
     self.assertEqual(output_prime_numbers(-10, -1), [])
示例#6
0
 def test_large_values(self):
     self.assertEqual(output_prime_numbers(0, 100), [
         2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61,
         67, 71, 73, 79, 83, 89, 97
     ])
示例#7
0
 def works_with_zero(self):
     self.assertEqual(output_prime_numbers(0, 0), [])
示例#8
0
 def test_twenty_twenty(self):
     self.assertEqual(output_prime_numbers(20, 20), [])
示例#9
0
 def test_ten_to_0(self):
     self.assertEqual(output_prime_numbers(10, 0), "This is wrong data")