Esempio n. 1
0
 def test_case_gh_1(self):
     final_step = 3
     res = 4
     allowed_steps = [1] * final_step
     res_counted = count_gh_routs(final_step, allowed_steps)
     self.assertEqual(res, res_counted)
Esempio n. 2
0
 def test_case_gh_10(self):
     final_step = 5
     res = 6
     allowed_steps = [1, 1, 1, 0, 1]
     res_counted = count_gh_routs(final_step, allowed_steps)
     self.assertEqual(res, res_counted)
Esempio n. 3
0
 def test_case_gh_6(self):
     final_step = 4
     res = 0
     allowed_steps = [1, 0, 1, 0]
     res_counted = count_gh_routs(final_step, allowed_steps)
     self.assertEqual(res, res_counted)