コード例 #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
ファイル: test_espiral.py プロジェクト: vmesel/dojo-centro
 def test_espiral_1_por_3(self):
     self.assertEqual(espiral(1, 3), '1 2 3')
コード例 #5
0
ファイル: test_espiral.py プロジェクト: vmesel/dojo-centro
 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
ファイル: test_espiral.py プロジェクト: vmesel/dojo-centro
 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
ファイル: test_espiral.py プロジェクト: vmesel/dojo-centro
    def test_espiral_2_por_5(self):
        self.assertEqual(espiral(2, 5), '''\
 1  2  3  4  5
10  9  8  7  6''')
コード例 #13
0
ファイル: test_espiral.py プロジェクト: vmesel/dojo-centro
    def test_espiral_2_por_2(self):
        self.assertEqual(espiral(2, 2), '''\
1 2
4 3''')
コード例 #14
0
ファイル: test_espiral.py プロジェクト: vmesel/dojo-centro
    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
ファイル: test_espiral.py プロジェクト: vmesel/dojo-centro
 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
ファイル: test_espiral.py プロジェクト: vmesel/dojo-centro
 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
ファイル: test_espiral.py プロジェクト: vmesel/dojo-centro
 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
ファイル: test_espiral.py プロジェクト: vmesel/dojo-centro
 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
ファイル: test_espiral.py プロジェクト: vmesel/dojo-centro
 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
ファイル: test_espiral.py プロジェクト: vmesel/dojo-centro
 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
ファイル: test_espiral.py プロジェクト: vmesel/dojo-centro
 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
ファイル: test_espiral.py プロジェクト: vmesel/dojo-centro
 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
ファイル: test_espiral.py プロジェクト: vmesel/dojo-centro
 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
ファイル: test_espiral.py プロジェクト: vmesel/dojo-centro
 def test_espiral_1_por_2(self):
     self.assertEqual(espiral(1, 2), '1 2')