Пример #1
0
    def test_1x2(self):
        self.assertEqual(espiral(1, 2), """\
1 2""")
Пример #2
0
    def test_2x3(self):
        self.assertEqual(espiral(2, 3), """\
1 2 3
6 5 4""")
Пример #3
0
    def test_2x5(self):
        self.assertEqual(espiral(2, 5), """\
 1  2  3  4  5
10  9  8  7  6""")
Пример #4
0
 def test_espiral_1_por_3(self):
     self.assertEqual(espiral(1, 3), '1 2 3')
Пример #5
0
 def test_espiral_1_por_1(self):
     self.assertEqual([[1]], espiral(1, 1))
Пример #6
0
    def test_espiral_2_por_5(self):
        self.assertEqual(espiral(2, 5), '''\
 1  2  3  4  5
10  9  8  7  6''')
Пример #7
0
    def test_2x5(self):
        self.assertEqual(espiral(2, 5), """\
 1  2  3  4  5
10  9  8  7  6""")
Пример #8
0
	def test_espiral_4_por_1(self):
		self.assertEqual([[1, 2, 3, 4]], espiral(4, 1))
Пример #9
0
	def test_espiral_1_por_2(self):
		self.assertEqual([[1],[2]], espiral(1, 2))
Пример #10
0
 def test_espiral_1_por_1(self):
     self.assertEqual(espiral(1, 1), '1')
Пример #11
0
	def test_espiral_3_por_1(self):
		self.assertEqual([[1, 2, 3]], espiral(3, 1))
Пример #12
0
    def test_espiral_2_por_5(self):
        self.assertEqual(espiral(2, 5), '''\
 1  2  3  4  5
10  9  8  7  6''')
Пример #13
0
    def test_espiral_2_por_2(self):
        self.assertEqual(espiral(2, 2), '''\
1 2
4 3''')
Пример #14
0
    def test_espiral_2_por_1(self):
        self.assertEqual(espiral(2, 1), '''\
1
2''')
Пример #15
0
 def test_espiral_1_por_2(self):
     self.assertEqual(espiral(1, 2), '1 2')
Пример #16
0
	def test_espiral_1_por_3(self):
		self.assertEqual([[1],[2],[3]], espiral(1, 3))
Пример #17
0
    def test_espiral_2_por_1(self):
        self.assertEqual(espiral(2, 1), '''\
1
2''')
Пример #18
0
	def test_espiral_1_por_4(self):
		self.assertEqual([[1],[2],[3],[4]], espiral(1, 4))
Пример #19
0
    def test_2x3(self):
        self.assertEqual(espiral(2, 3), """\
1 2 3
6 5 4""")
Пример #20
0
	def test_espiral_2_por_2(self):
		self.assertEqual([[1, 2],[4, 3]], espiral(2, 2))
Пример #21
0
    def test_1x2(self):
        self.assertEqual(espiral(1, 2), """\
1 2""")
Пример #22
0
	def test_espiral_3_por_2(self):
		self.assertEqual([[1, 2, 3],[6, 5, 4]], espiral(3, 2))
Пример #23
0
 def test_espiral_2_por_3(self):
     self.assertEqual([[1, 2], [6, 3], [5, 4]], espiral(2, 3))
Пример #24
0
	def test_espiral_2_por_3(self):
		self.assertEqual([[1, 2],[6, 3],[5, 4]], espiral(2, 3))
Пример #25
0
 def test_espiral_2_por_1(self):
     self.assertEqual([[1, 2]], espiral(2, 1))
Пример #26
0
	def test_espiral_1_por_1(self):
		self.assertEqual([[1]], espiral(1, 1))
Пример #27
0
    def test_2x4(self):
        self.assertEqual(espiral(2, 4), """\
1 2 3 4
8 7 6 5""")
Пример #28
0
	def test_espiral_2_por_1(self):
		self.assertEqual([[1, 2]], espiral(2, 1))
Пример #29
0
    def test_1x1(self):
        self.assertEqual(espiral(1, 1), """\
1""")
Пример #30
0
 def test_espiral_3_por_1(self):
     self.assertEqual([[1, 2, 3]], espiral(3, 1))
Пример #31
0
    def test_2x2(self):
        self.assertEqual(espiral(2, 2), """\
1 2
4 3""")
Пример #32
0
 def test_espiral_4_por_1(self):
     self.assertEqual([[1, 2, 3, 4]], espiral(4, 1))
Пример #33
0
 def test_espiral_1_por_3(self):
     self.assertEqual(espiral(1, 3), '1 2 3')
Пример #34
0
 def test_espiral_1_por_2(self):
     self.assertEqual([[1], [2]], espiral(1, 2))
Пример #35
0
    def test_espiral_2_por_2(self):
        self.assertEqual(espiral(2, 2), '''\
1 2
4 3''')
Пример #36
0
 def test_espiral_1_por_3(self):
     self.assertEqual([[1], [2], [3]], espiral(1, 3))
Пример #37
0
 def test_espiral_1_por_1(self):
     self.assertEqual(espiral(1, 1), '1')
Пример #38
0
 def test_espiral_1_por_4(self):
     self.assertEqual([[1], [2], [3], [4]], espiral(1, 4))
Пример #39
0
    def test_2x4(self):
        self.assertEqual(espiral(2, 4), """\
1 2 3 4
8 7 6 5""")
Пример #40
0
 def test_espiral_2_por_2(self):
     self.assertEqual([[1, 2], [4, 3]], espiral(2, 2))
Пример #41
0
    def test_1x1(self):
        self.assertEqual(espiral(1, 1), """\
1""")
Пример #42
0
 def test_espiral_3_por_2(self):
     self.assertEqual([[1, 2, 3], [6, 5, 4]], espiral(3, 2))
Пример #43
0
    def test_2x2(self):
        self.assertEqual(espiral(2, 2), """\
1 2
4 3""")
Пример #44
0
 def test_espiral_1_por_2(self):
     self.assertEqual(espiral(1, 2), '1 2')