def test_1x2(self): self.assertEqual(espiral(1, 2), """\ 1 2""")
def test_2x3(self): self.assertEqual(espiral(2, 3), """\ 1 2 3 6 5 4""")
def test_2x5(self): self.assertEqual(espiral(2, 5), """\ 1 2 3 4 5 10 9 8 7 6""")
def test_espiral_1_por_3(self): self.assertEqual(espiral(1, 3), '1 2 3')
def test_espiral_1_por_1(self): self.assertEqual([[1]], espiral(1, 1))
def test_espiral_2_por_5(self): self.assertEqual(espiral(2, 5), '''\ 1 2 3 4 5 10 9 8 7 6''')
def test_espiral_4_por_1(self): self.assertEqual([[1, 2, 3, 4]], espiral(4, 1))
def test_espiral_1_por_2(self): self.assertEqual([[1],[2]], espiral(1, 2))
def test_espiral_1_por_1(self): self.assertEqual(espiral(1, 1), '1')
def test_espiral_3_por_1(self): self.assertEqual([[1, 2, 3]], espiral(3, 1))
def test_espiral_2_por_2(self): self.assertEqual(espiral(2, 2), '''\ 1 2 4 3''')
def test_espiral_2_por_1(self): self.assertEqual(espiral(2, 1), '''\ 1 2''')
def test_espiral_1_por_2(self): self.assertEqual(espiral(1, 2), '1 2')
def test_espiral_1_por_3(self): self.assertEqual([[1],[2],[3]], espiral(1, 3))
def test_espiral_1_por_4(self): self.assertEqual([[1],[2],[3],[4]], espiral(1, 4))
def test_espiral_2_por_2(self): self.assertEqual([[1, 2],[4, 3]], espiral(2, 2))
def test_espiral_3_por_2(self): self.assertEqual([[1, 2, 3],[6, 5, 4]], espiral(3, 2))
def test_espiral_2_por_3(self): self.assertEqual([[1, 2], [6, 3], [5, 4]], espiral(2, 3))
def test_espiral_2_por_3(self): self.assertEqual([[1, 2],[6, 3],[5, 4]], espiral(2, 3))
def test_espiral_2_por_1(self): self.assertEqual([[1, 2]], espiral(2, 1))
def test_2x4(self): self.assertEqual(espiral(2, 4), """\ 1 2 3 4 8 7 6 5""")
def test_1x1(self): self.assertEqual(espiral(1, 1), """\ 1""")
def test_2x2(self): self.assertEqual(espiral(2, 2), """\ 1 2 4 3""")
def test_espiral_1_por_2(self): self.assertEqual([[1], [2]], espiral(1, 2))
def test_espiral_1_por_3(self): self.assertEqual([[1], [2], [3]], espiral(1, 3))
def test_espiral_1_por_4(self): self.assertEqual([[1], [2], [3], [4]], espiral(1, 4))
def test_espiral_2_por_2(self): self.assertEqual([[1, 2], [4, 3]], espiral(2, 2))
def test_espiral_3_por_2(self): self.assertEqual([[1, 2, 3], [6, 5, 4]], espiral(3, 2))