Sophie

Sophie

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

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

--TEST--
Games_Chess_Crazyhouse->inCheck() other positions
--SKIPIF--
--FILE--
<?php
require_once dirname(__FILE__) . '/setup.php.inc';
$board->resetGame('8/pppppppp/8/rnbqkbnr/8/RNBQKBNR/PPPPPPPP/8 w KQkq - 0 1');
$pieces = $board->inCheck('W');
$phpunit->assertEquals(
    'c5',
    $pieces, 'black checking is wrong');
$pieces = $board->inCheck('B');
$phpunit->assertEquals(
    'c3',
    $pieces, 'white checking is wrong');
echo 'tests done';
?>
--EXPECT--
tests done