示例#1
0
 def test_east_right(self):
     self.assertEqual(1j, change_face(1, 1))
示例#2
0
 def test_east_left(self):
     self.assertEqual(-1j, change_face(1, -1))
示例#3
0
 def test_north_right(self):
     self.assertEqual(1, change_face(-1j, 1))
示例#4
0
 def test_south_left(self):
     self.assertEqual(1, change_face(1j, -1))
示例#5
0
 def test_west_left(self):
     self.assertEqual(1j, change_face(-1, -1))
示例#6
0
 def test_north_left(self):
     self.assertEqual(-1, change_face(-1j, -1))
示例#7
0
 def test_west_right(self):
     self.assertEqual(-1j, change_face(-1, 1))
示例#8
0
 def test_south_right(self):
     self.assertEqual(-1, change_face(1j, 1))