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""")
Exemple #4
0
 def test_espiral_1_por_3(self):
     self.assertEqual(espiral(1, 3), '1 2 3')
Exemple #5
0
 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''')
Exemple #7
0
    def test_2x5(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))
Exemple #10
0
 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))
Exemple #12
0
    def test_espiral_2_por_5(self):
        self.assertEqual(espiral(2, 5), '''\
 1  2  3  4  5
10  9  8  7  6''')
Exemple #13
0
    def test_espiral_2_por_2(self):
        self.assertEqual(espiral(2, 2), '''\
1 2
4 3''')
Exemple #14
0
    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_2_por_1(self):
        self.assertEqual(espiral(2, 1), '''\
1
2''')
	def test_espiral_1_por_4(self):
		self.assertEqual([[1],[2],[3],[4]], espiral(1, 4))
Exemple #19
0
    def test_2x3(self):
        self.assertEqual(espiral(2, 3), """\
1 2 3
6 5 4""")
	def test_espiral_2_por_2(self):
		self.assertEqual([[1, 2],[4, 3]], espiral(2, 2))
Exemple #21
0
    def test_1x2(self):
        self.assertEqual(espiral(1, 2), """\
1 2""")
	def test_espiral_3_por_2(self):
		self.assertEqual([[1, 2, 3],[6, 5, 4]], espiral(3, 2))
Exemple #23
0
 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))
Exemple #25
0
 def test_espiral_2_por_1(self):
     self.assertEqual([[1, 2]], espiral(2, 1))
	def test_espiral_1_por_1(self):
		self.assertEqual([[1]], espiral(1, 1))
    def test_2x4(self):
        self.assertEqual(espiral(2, 4), """\
1 2 3 4
8 7 6 5""")
	def test_espiral_2_por_1(self):
		self.assertEqual([[1, 2]], espiral(2, 1))
    def test_1x1(self):
        self.assertEqual(espiral(1, 1), """\
1""")
Exemple #30
0
 def test_espiral_3_por_1(self):
     self.assertEqual([[1, 2, 3]], espiral(3, 1))
    def test_2x2(self):
        self.assertEqual(espiral(2, 2), """\
1 2
4 3""")
Exemple #32
0
 def test_espiral_4_por_1(self):
     self.assertEqual([[1, 2, 3, 4]], espiral(4, 1))
 def test_espiral_1_por_3(self):
     self.assertEqual(espiral(1, 3), '1 2 3')
Exemple #34
0
 def test_espiral_1_por_2(self):
     self.assertEqual([[1], [2]], espiral(1, 2))
    def test_espiral_2_por_2(self):
        self.assertEqual(espiral(2, 2), '''\
1 2
4 3''')
Exemple #36
0
 def test_espiral_1_por_3(self):
     self.assertEqual([[1], [2], [3]], espiral(1, 3))
 def test_espiral_1_por_1(self):
     self.assertEqual(espiral(1, 1), '1')
Exemple #38
0
 def test_espiral_1_por_4(self):
     self.assertEqual([[1], [2], [3], [4]], espiral(1, 4))
Exemple #39
0
    def test_2x4(self):
        self.assertEqual(espiral(2, 4), """\
1 2 3 4
8 7 6 5""")
Exemple #40
0
 def test_espiral_2_por_2(self):
     self.assertEqual([[1, 2], [4, 3]], espiral(2, 2))
Exemple #41
0
    def test_1x1(self):
        self.assertEqual(espiral(1, 1), """\
1""")
Exemple #42
0
 def test_espiral_3_por_2(self):
     self.assertEqual([[1, 2, 3], [6, 5, 4]], espiral(3, 2))
Exemple #43
0
    def test_2x2(self):
        self.assertEqual(espiral(2, 2), """\
1 2
4 3""")
Exemple #44
0
 def test_espiral_1_por_2(self):
     self.assertEqual(espiral(1, 2), '1 2')