Ejemplo n.º 1
0
 def test_size_10_contains_in_out_list(self):
     value = IntList([Range(1, 5) for __ in range(10)])
     v = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
     self.assertFalse(value.contains(v), 'Contains failed')
Ejemplo n.º 2
0
 def test_size_10_contains_wrong_len_list(self):
     value = IntList([Range(1, 5) for __ in range(10)])
     self.assertFalse(value.contains([2, 3]), 'Contains failed')
Ejemplo n.º 3
0
 def test_size_10_contains_out_list(self):
     value = IntList([Range(1, 5) for __ in range(10)])
     v = [-5, -4, -3, -2, -1, 6, 7, 8, 9, 10]
     self.assertFalse(value.contains(v), 'Contains failed')
Ejemplo n.º 4
0
 def test_size_10_contains_in_list(self):
     value = IntList([Range(1, 5) for __ in range(10)])
     v = [1, 2, 3, 4, 5, 1, 2, 3, 4, 5]
     self.assertTrue(value.contains(v), 'Contains failed')
Ejemplo n.º 5
0
 def test_size_2_contains_in_out_list(self):
     value = IntList([Range(1, 5), Range(1, 5)])
     self.assertFalse(value.contains([2, 7]), 'Contains failed')
Ejemplo n.º 6
0
 def test_size_1_contains_in_list(self):
     value = IntList([Range(1, 5)])
     self.assertTrue(value.contains([2]), 'Contains failed')
Ejemplo n.º 7
0
 def test_size_1_contains_out(self):
     value = IntList([Range(1, 5)])
     self.assertFalse(value.contains(6), 'Contains failed')