def test_fix_complex_pipe(self):
     fixed_pipe = pipe_fix([1, 2, 3, 12])
     self.assertEqual(
         [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
         fixed_pipe,
     )
 def test_fix_short_from_6_pipe(self):
     fixed_pipe = pipe_fix([6, 9])
     self.assertEqual(
         [6, 7, 8, 9],
         fixed_pipe,
     )
Esempio n. 3
0
 def test_fixer_3(self):
     pipe_fixed = pipe_fix([3])
     self.assertEqual(pipe_fixed, [3])
Esempio n. 4
0
 def test2(self):
     prueba = pipe_fix([4])
     self.assertEqual(prueba, [4])
 def test_pipe_fixer_list3(self):
     pipe_list = pipe_fix([-1, 4])
     self.assertEqual(pipe_list, [-1, 0, 1, 2, 3, 4])
 def test_pipe_fixer_list(self):
     pipe_list = pipe_fix([1, 2, 3, 5, 6, 8, 9])
     self.assertEqual(pipe_list, [1, 2, 3, 4, 5, 6, 7, 8, 9])
Esempio n. 7
0
 def test_fixer_2(self):
     pipe_fixed = pipe_fix([])
     self.assertIsNone(pipe_fixed)
 def test_fix_simple_pipe(self):
     fixed_pipe = pipe_fix([1, 2, 3, 5, 6, 8, 9])
     self.assertEqual(
         [1, 2, 3, 4, 5, 6, 7, 8, 9],
         fixed_pipe,
     )
Esempio n. 9
0
 def test_fixer_1(self):
     pipe_fixed = pipe_fix([1, 5, 8, 10])
     self.assertEqual(pipe_fixed, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
Esempio n. 10
0
 def test_fix_already_fixed_pipe(self):
     pipe_fixed = pipe_fix([1, 2, 3])
     self.assertEqual(
         [1, 2, 3],
         pipe_fixed,
     )
Esempio n. 11
0
 def test_fix_short_from_6_pipe(self):
     pipe_fixed = pipe_fix([6, 9])
     self.assertEqual(
         [6, 7, 8, 9],
         pipe_fixed,
     )
Esempio n. 12
0
 def test_fixer_5(self):
     pipe_fixed = pipe_fix([-3, 2, 3])
     self.assertEqual(pipe_fixed, [-3, -2, -1, 0, 1, 2, 3])
Esempio n. 13
0
 def test_fixer_4(self):
     pipe_fixed = pipe_fix([8, 8, 8])
     self.assertEqual(pipe_fixed, [8])
 def test_fix_simple_and_negative_pipe(self):
     fixed_pipe = pipe_fix([-1, 4])
     self.assertEqual(
         [-1, 0, 1, 2, 3, 4],
         fixed_pipe,
     )
Esempio n. 15
0
 def test_fix_wrong_pipe(self):
     fixed_pipe = pipe_fix([1, 3, 'hola'])
     self.assertEqual("Valor no valido", fixed_pipe)
 def test_fix_already_fixed_pipe(self):
     fixed_pipe = pipe_fix([1, 2, 3])
     self.assertEqual(
         [1, 2, 3],
         fixed_pipe,
     )
Esempio n. 17
0
 def test_list_one(self):
     value = pipe_fix([1, 3, 5, 8])
     self.assertEqual(value, [1, 2, 3, 4, 5, 6, 7, 8])
 def test_pipe_fixer_list2(self):
     pipe_list = pipe_fix([6, 9])
     self.assertEqual(pipe_list, [6, 7, 8, 9])
Esempio n. 19
0
 def test3(self):
     prueba = pipe_fix([2, 5, 9])
     self.assertEqual(prueba, [2, 3, 4, 5, 6, 7, 8, 9])
 def test_pipe_fixer_list4(self):
     pipe_list = pipe_fix([1, 2, 3])
     self.assertEqual(pipe_list, [1, 2, 3])
Esempio n. 21
0
 def test1(self):
     prueba = pipe_fix([1, 3, 5, 6, 7, 8])
     self.assertEqual(prueba, [1, 2, 3, 4, 5, 6, 7, 8])
 def test_pipe_fixer_list1(self):
     pipe_list = pipe_fix([1, 2, 3, 12])
     self.assertEqual(pipe_list, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12])
Esempio n. 23
0
 def test_pipe_fix(self):
     pipe_inc = pipe_fix([1, 3, 5, 6, 7, 8])
     self.assertEqual(pipe_inc, [1, 2, 3, 4, 5, 6, 7, 8])