Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 6496e204f77658ff2108478d2951b08a > files > 564

php-pear-Games_Chess-1.0.1-5mdv2010.0.noarch.rpm

--TEST--
Games_Chess_Losers->gameOver() pieces left
--SKIPIF--
--FILE--
<?php
require_once dirname(__FILE__) . '/setup.php.inc';
$board->resetGame();
$board->blankBoard();
$board->addPiece('W', 'K', 'e8');
$board->addPiece('W', 'R', 'a8');
$board->addPiece('B', 'K', 'f3');
$board->addPiece('B', 'R', 'a3');
$board->_move = 'B';
$phpunit->assertFalse($board->gameOver(), '1');
$board->_move = 'W';
$phpunit->assertFalse($board->gameOver(), '2');
echo 'tests done';
?>
--EXPECT--
tests done