SUpport for arrows in pgn
This commit is contained in:
0
JsonToPgnParser.php
Normal file → Executable file
0
JsonToPgnParser.php
Normal file → Executable file
0
test/JSONToPgnTest.php
Normal file → Executable file
0
test/JSONToPgnTest.php
Normal file → Executable file
@@ -2059,6 +2059,16 @@ Rc8 Ne6+ 72. Kf6 d2 73. c5+ Kd7 0-1';
|
||||
|
||||
// when
|
||||
$game = $pgnParser->getGameByIndex(0);
|
||||
|
||||
$expectedMoves = array("", "Nf3","c5","c4","Nc6","Nc3","e5","e3","Nf6","Be2", "d5");
|
||||
|
||||
for($i=1;$i<count($expectedMoves);$i++){
|
||||
$m = $game["moves"][$i];
|
||||
$this->assertEquals($expectedMoves[$i], $m["m"]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
$m = $game["moves"][7];
|
||||
|
||||
// then
|
||||
|
0
test/pgn/annotated.pgn
Normal file → Executable file
0
test/pgn/annotated.pgn
Normal file → Executable file
0
test/pgn/greatgames-onelines.pgn
Normal file → Executable file
0
test/pgn/greatgames-onelines.pgn
Normal file → Executable file
0
test/pgn/greatgames-twolines.pgn
Normal file → Executable file
0
test/pgn/greatgames-twolines.pgn
Normal file → Executable file
0
test/pgn/nullmoves.pgn
Normal file → Executable file
0
test/pgn/nullmoves.pgn
Normal file → Executable file
Reference in New Issue
Block a user