예제 #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))