Ejemplo n.º 1
0
 def test_20_x_20(self):
     width = 20
     height = 20
     expected = 137846528820
     self.assertEqual(expected, calc_lattice_path(width, height))
Ejemplo n.º 2
0
 def test_5_x_10(self):
     width = 5
     height = 10
     expected = 3003
     self.assertEqual(expected, calc_lattice_path(width, height))
Ejemplo n.º 3
0
 def test_5_x_15(self):
     width = 5
     height = 15
     expected = 15504
     self.assertEqual(expected, calc_lattice_path(width, height))
Ejemplo n.º 4
0
 def test_4_x_4(self):
     width = 4
     height = 4
     expected = 70
     self.assertEqual(expected, calc_lattice_path(width, height))
Ejemplo n.º 5
0
 def test_4_x_3(self):
     width = 4
     height = 3
     expected = 35
     self.assertEqual(expected, calc_lattice_path(width, height))
Ejemplo n.º 6
0
 def test_3_x_4(self):
     width = 3
     height = 4
     expected = 35
     self.assertEqual(expected, calc_lattice_path(width, height))
Ejemplo n.º 7
0
 def test_3_x_3(self):
     width = 3
     height = 3
     expected = 20
     self.assertEqual(expected, calc_lattice_path(width, height))
Ejemplo n.º 8
0
 def test_2_x_2(self):
     width = 2
     height = 2
     expected = 6
     self.assertEqual(expected, calc_lattice_path(width, height))