Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfish-shogi committed Dec 31, 2024
1 parent e742257 commit dafb98b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests/record.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,12 +510,12 @@ describe("record", () => {
const position3 = Position.newBySFEN(
"lr5nl/3g1kg2/2n1ppsp1/p1pps1p1p/1p5P1/P1PP1PP1P/1PS1PSN2/2GK1G3/LN5RL b Bb 1",
) as Position;
expect(record.getRepetitionCount(position3)).toBe(1);
expect(record.getRepetitionCount(position3)).toBe(3);
// 49手目着手後の局面
const position4 = Position.newBySFEN(
"lr5nl/3g1kg2/2n1ppsp1/p1pps1p1p/1p5P1/P1PPSPP1P/1PS1P1N2/2GK1G3/LN5RL w Bb 1",
) as Position;
expect(record.getRepetitionCount(position4)).toBe(0);
expect(record.getRepetitionCount(position4)).toBe(3);
});

it("perpetualCheck/black", () => {
Expand Down

0 comments on commit dafb98b

Please sign in to comment.