mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2024-11-23 11:31:33 +01:00
DroidFish: Fixed bug when exporting time information to PGN data.
This commit is contained in:
parent
298d0478de
commit
40bb41bbca
|
@ -1155,7 +1155,7 @@ public class GameTree {
|
|||
|
||||
private final void addExtendedInfo(PgnToken.PgnTokenReceiver out,
|
||||
String extCmd, String extData) {
|
||||
out.processToken(this, PgnToken.COMMENT, "{[%" + extCmd + " " + extData + "]}");
|
||||
out.processToken(this, PgnToken.COMMENT, "[%" + extCmd + " " + extData + "]");
|
||||
}
|
||||
|
||||
private static final String getTimeStr(int remainingTime) {
|
||||
|
|
|
@ -576,6 +576,7 @@ public class GameTreeTest extends TestCase {
|
|||
options.exp.playerAction = true;
|
||||
pgn = gt.toPGN(options);
|
||||
assertTrue(pgn.indexOf("--") >= 0);
|
||||
assertTrue(pgn.indexOf("1. -- {[%playeraction resign]} 0-1") >= 0);
|
||||
|
||||
gt = new GameTree(null);
|
||||
gt.readPGN(pgn, options);
|
||||
|
|
Loading…
Reference in New Issue
Block a user