Ejemplo n.º 1
0
 def test_are_greater_than2(self):
 		list = [40,26,5067,403,1034,597,33995,1023]
 		n = 8000
 		filter.are_greater_than(list,n)
 		list.__eq__([33995])
Ejemplo n.º 2
0
    def test_are_greater_than(self):
        are_great1 = filter.are_greater_than([1, 2, 3], 3)
        are_great2 = filter.are_greater_than([3, 5, 8], 1)

        self.assertEqual(are_great1, [])
        self.assertEqual(are_great2, [3, 5, 8])
Ejemplo n.º 3
0
 def test_are_greater_than1(self):
      list = [0,2,4,6,8,9]
      n=4
      filter.are_greater_than(list,n)
      list.__eq__([6,8,9])
Ejemplo n.º 4
0
 def test_4(self):
     x = [-3, -2, 4]
     self.assertAlmostEqual(filter.are_greater_than(x, -3), [-2, 4])
Ejemplo n.º 5
0
 def test_are_greater_2(self):
     l1 = filter.are_greater_than([0.0, 1.0, 2.0, 3.0], 2)
     l2 = [3.0]
     self.assertListAlmostEqual(l1, l2)
Ejemplo n.º 6
0
 def test_4(self):
     t = [7, 3, 2, 1, 9, 8]
     self.assertEqual(filter.are_greater_than(t, 4), [7, 9, 8])
Ejemplo n.º 7
0
 def test_3(self):
     t = [1, 3, 1, 2, -9, 5]
     self.assertEqual(filter.are_greater_than(t, 2), [3, 5])
Ejemplo n.º 8
0
 def test_are_greater_than2(self):
     numb_list = [1, 2, 3, 99]
     n = 88
     new_list = [99]
     self.assertEqual(filter.are_greater_than(numb_list, n), new_list)