1--TEST--
2Games_Chess_Crazyhouse->addPiece() add white pawns
3--SKIPIF--
4--FILE--
5<?php
6require_once dirname(__FILE__) . '/setup.php.inc';
7$board->addPiece('W', 'P', 'a2');
8$phpunit->assertEquals(array('a2', 'P'), $board->_pieces['W']['P'][0],
9    'incorrect pawn setup');
10$board->addPiece('W', 'P', 'a3');
11$phpunit->assertEquals(array('a2', 'P'), $board->_pieces['W']['P'][0],
12    '1 pawn not the same');
13$phpunit->assertEquals(array('a3', 'P'), $board->_pieces['W']['P'][1],
14    'incorrect pawn setup');
15$board->addPiece('W', 'P', 'b2');
16$phpunit->assertEquals(array('a2', 'P'), $board->_pieces['W']['P'][0],
17    '1 pawn not the same');
18$phpunit->assertEquals(array('a3', 'P'), $board->_pieces['W']['P'][1],
19    '2 pawn not the same');
20$phpunit->assertEquals(array('b2', 'P'), $board->_pieces['W']['P'][2],
21    'incorrect pawn setup');
22$board->addPiece('W', 'P', 'c2');
23$phpunit->assertEquals(array('a2', 'P'), $board->_pieces['W']['P'][0],
24    '1 pawn not the same');
25$phpunit->assertEquals(array('a3', 'P'), $board->_pieces['W']['P'][1],
26    '2 pawn not the same');
27$phpunit->assertEquals(array('b2', 'P'), $board->_pieces['W']['P'][2],
28    '3 pawn not the same');
29$phpunit->assertEquals(array('c2', 'P'), $board->_pieces['W']['P'][3],
30    'incorrect pawn setup');
31$board->addPiece('W', 'P', 'd2');
32$phpunit->assertEquals(array('a2', 'P'), $board->_pieces['W']['P'][0],
33    '1 pawn not the same');
34$phpunit->assertEquals(array('a3', 'P'), $board->_pieces['W']['P'][1],
35    '2 pawn not the same');
36$phpunit->assertEquals(array('b2', 'P'), $board->_pieces['W']['P'][2],
37    '3 pawn not the same');
38$phpunit->assertEquals(array('c2', 'P'), $board->_pieces['W']['P'][3],
39    '4 pawn not the same');
40$phpunit->assertEquals(array('d2', 'P'), $board->_pieces['W']['P'][4],
41    'incorrect pawn setup');
42$board->addPiece('W', 'P', 'e2');
43$phpunit->assertEquals(array('a2', 'P'), $board->_pieces['W']['P'][0],
44    '1 pawn not the same');
45$phpunit->assertEquals(array('a3', 'P'), $board->_pieces['W']['P'][1],
46    '2 pawn not the same');
47$phpunit->assertEquals(array('b2', 'P'), $board->_pieces['W']['P'][2],
48    '3 pawn not the same');
49$phpunit->assertEquals(array('c2', 'P'), $board->_pieces['W']['P'][3],
50    '4 pawn not the same');
51$phpunit->assertEquals(array('d2', 'P'), $board->_pieces['W']['P'][4],
52    '5 pawn not the same');
53$phpunit->assertEquals(array('e2', 'P'), $board->_pieces['W']['P'][5],
54    'incorrect pawn setup');
55$board->addPiece('W', 'P', 'f2');
56$phpunit->assertEquals(array('a2', 'P'), $board->_pieces['W']['P'][0],
57    '1 pawn not the same');
58$phpunit->assertEquals(array('a3', 'P'), $board->_pieces['W']['P'][1],
59    '2 pawn not the same');
60$phpunit->assertEquals(array('b2', 'P'), $board->_pieces['W']['P'][2],
61    '3 pawn not the same');
62$phpunit->assertEquals(array('c2', 'P'), $board->_pieces['W']['P'][3],
63    '4 pawn not the same');
64$phpunit->assertEquals(array('d2', 'P'), $board->_pieces['W']['P'][4],
65    '5 pawn not the same');
66$phpunit->assertEquals(array('e2', 'P'), $board->_pieces['W']['P'][5],
67    '6 pawn not the same');
68$phpunit->assertEquals(array('f2', 'P'), $board->_pieces['W']['P'][6],
69    'incorrect pawn setup');
70$board->addPiece('W', 'P', 'g2');
71$phpunit->assertEquals(array('a2', 'P'), $board->_pieces['W']['P'][0],
72    '1 pawn not the same');
73$phpunit->assertEquals(array('a3', 'P'), $board->_pieces['W']['P'][1],
74    '2 pawn not the same');
75$phpunit->assertEquals(array('b2', 'P'), $board->_pieces['W']['P'][2],
76    '3 pawn not the same');
77$phpunit->assertEquals(array('c2', 'P'), $board->_pieces['W']['P'][3],
78    '4 pawn not the same');
79$phpunit->assertEquals(array('d2', 'P'), $board->_pieces['W']['P'][4],
80    '5 pawn not the same');
81$phpunit->assertEquals(array('e2', 'P'), $board->_pieces['W']['P'][5],
82    '6 pawn not the same');
83$phpunit->assertEquals(array('f2', 'P'), $board->_pieces['W']['P'][6],
84    '7 pawn not the same');
85$phpunit->assertEquals(array('g2', 'P'), $board->_pieces['W']['P'][7],
86    'incorrect pawn setup');
87$board->addPiece('W', 'P', 'g3');
88$phpunit->assertEquals(array('a2', 'P'), $board->_pieces['W']['P'][0],
89    '1 pawn not the same');
90$phpunit->assertEquals(array('a3', 'P'), $board->_pieces['W']['P'][1],
91    '2 pawn not the same');
92$phpunit->assertEquals(array('b2', 'P'), $board->_pieces['W']['P'][2],
93    '3 pawn not the same');
94$phpunit->assertEquals(array('c2', 'P'), $board->_pieces['W']['P'][3],
95    '4 pawn not the same');
96$phpunit->assertEquals(array('d2', 'P'), $board->_pieces['W']['P'][4],
97    '5 pawn not the same');
98$phpunit->assertEquals(array('e2', 'P'), $board->_pieces['W']['P'][5],
99    '6 pawn not the same');
100$phpunit->assertEquals(array('f2', 'P'), $board->_pieces['W']['P'][6],
101    '7 pawn not the same');
102$phpunit->assertEquals(array('g2', 'P'), $board->_pieces['W']['P'][7],
103    '8 pawn not the same');
104$phpunit->assertEquals(array('g3', 'P'), $board->_pieces['W']['P'][8],
105    'incorrect pawn setup');
106echo 'tests done';
107?>
108--EXPECT--
109tests done