Пример #1
0
 def test_count_l(self):
     self.assertEqual(Interview.count_l(self.input_1), self.output_1)
     self.assertEqual(Interview.count_l(self.input_2), self.output_2)
Пример #2
0
 def test_memory(self):
     #Interview.cycle(n_cycle=self.n)
     #Interview.recursion(n_recursion=self.n, string_for_insert=self.n1)
     #Interview.count_n(n_count=self.n)
     Interview.count_l(l_count=self.n)
Пример #3
0
 def test_recursion_list(self):
     self.assertEqual(Interview.recursion_list(1, self.l_n1), self.l_n1)
     self.assertEqual(Interview.recursion_list(2, self.l_n1), self.l_n2)
     self.assertEqual(Interview.recursion_list(3, self.l_n1), self.l_n3)
     self.assertEqual(Interview.recursion_list(4, self.l_n1), self.l_n4)
Пример #4
0
 def test_recursion(self):
     self.assertEqual(Interview.recursion(1, self.n1), self.n1)
     self.assertEqual(Interview.recursion(2, self.n1), self.n2)
     self.assertEqual(Interview.recursion(3, self.n1), self.n3)
     self.assertEqual(Interview.recursion(4, self.n1), self.n4)
Пример #5
0
 def test_cycle(self):
     self.assertEqual(Interview.cycle(1), self.n1)
     self.assertEqual(Interview.cycle(2), self.n2)
     self.assertEqual(Interview.cycle(3), self.n3)
     self.assertEqual(Interview.cycle(4), self.n4)
Пример #6
0
 def test_func_new_list(self):
     self.assertEqual(Interview.func_new_list(self.l_n1), self.l_n2)
     self.assertEqual(Interview.func_new_list(self.l_n2), self.l_n3)
     self.assertEqual(Interview.func_new_list(self.l_n3), self.l_n4)
Пример #7
0
 def test_func_new_string(self):
     self.assertEqual(Interview.func_new_string(self.n1), self.n2)
     self.assertEqual(Interview.func_new_string(self.n2), self.n3)
     self.assertEqual(Interview.func_new_string(self.n3), self.n4)