projects
/
naja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Those did nothing
[naja.git]
/
naja
/
tests
/
test_player.py
diff --git
a/naja/tests/test_player.py
b/naja/tests/test_player.py
index a7173cbc794ce6b7571dfb3962532c4b2e4e6212..2e17379213db3d9e4a8f5f6d0603c199ddf88eb8 100644
(file)
--- a/
naja/tests/test_player.py
+++ b/
naja/tests/test_player.py
@@
-130,17
+130,19
@@
class TestPlayer(TestCase):
def test_legal_moves_castle(self):
player = Player(0x0f, (1, 3), MOVES.CASTLE)
def test_legal_moves_castle(self):
player = Player(0x0f, (1, 3), MOVES.CASTLE)
- self.assertEqual(player.legal_moves(), [(0, 3), (1, 0), (1, 1), (1, 2),
- (1, 3), (1, 4), (2, 3), (3, 3), (4, 3)])
+ self.assertEqual(player.legal_moves(), [
+ (0, 3), (1, 0), (1, 1), (1, 2), (1, 3), (1, 4), (2, 3), (3, 3),
+ (4, 3)])
def test_legal_moves_bishop(self):
player = Player(0x0f, (1, 3), MOVES.BISHOP)
def test_legal_moves_bishop(self):
player = Player(0x0f, (1, 3), MOVES.BISHOP)
- self.assertEqual(player.legal_moves(), [
(0, 2), (0, 4), (1, 3), (2, 2),
- (2, 4), (3, 1), (4, 0)])
+ self.assertEqual(player.legal_moves(), [
+
(0, 2), (0, 4), (1, 3), (2, 2),
(2, 4), (3, 1), (4, 0)])
def test_legal_moves_knight(self):
player = Player(0x0f, (1, 3), MOVES.KNIGHT)
def test_legal_moves_knight(self):
player = Player(0x0f, (1, 3), MOVES.KNIGHT)
- self.assertEqual(player.legal_moves(), [(0, 1), (1, 3), (2, 1), (3, 2), (3, 4)])
+ self.assertEqual(player.legal_moves(), [
+ (0, 1), (1, 3), (2, 1), (3, 2), (3, 4)])
def test_set_position(self):
player = Player(0x0f, (3, 3), MOVES.BISHOP)
def test_set_position(self):
player = Player(0x0f, (3, 3), MOVES.BISHOP)