Ejemplo n.º 1
0
 def test_length_non_empty_list(self):
     self.assertEqual(length([1, 2, 3, 4]), 4)
Ejemplo n.º 2
0
 def test_empty_len(self):
     self.assertEqual(0, list_ops.length([]))
Ejemplo n.º 3
0
 def test_length_empty_list(self):
     self.assertEqual(length([]), 0)
Ejemplo n.º 4
0
 def test_length_nonempty_list(self):
     self.assertEqual(list_ops.length([1, 2, 3, 4]), 4)
Ejemplo n.º 5
0
 def test_pos_leng(self):
     self.assertEqual(10,
                      list_ops.length((-1, 2, -3, 4, -5, 6, -7, 8, -9, 10)))
Ejemplo n.º 6
0
 def test_length_empty_list(self):
     self.assertEqual(list_ops.length([]), 0)
Ejemplo n.º 7
0
 def test_pos_leng(self):
     self.assertEqual(list_ops.length([-1, 2, -3, 4, -5, 6, -7, 8, -9, 10]),
                      10)
Ejemplo n.º 8
0
 def test_empty_len(self):
     self.assertEqual(0, list_ops.length([]))
Ejemplo n.º 9
0
 def test_pos_leng(self):
     self.assertEqual(10, list_ops.length((-1, 2, -3, 4, -5, 6, -7, 8, -9, 10)))
Ejemplo n.º 10
0
 def test_pos_leng(self):
     self.assertEqual(
         list_ops.length([-1, 2, -3, 4, -5, 6, -7, 8, -9, 10]), 10)