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