Skip to content

Commit

Permalink
delete fen witch is not correct
Browse files Browse the repository at this point in the history
  • Loading branch information
HyoungSooo committed Feb 14, 2024
1 parent 548584b commit 3d7744c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tests/stockfish/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,6 @@ def test_will_move_be_a_capture(self, stockfish):
"fen",
[
"2k2q2/8/8/8/8/8/8/2Q2K2 w - - 0 1",
"8/8/8/3k4/3K4/8/8/8 b - - 0 1",
"1q2nB2/pP1k2KP/NN1Q1qP1/8/1P1p4/4p1br/3R4/6n1 w - - 0 1",
"3rk1n1/ppp3pp/8/8/8/8/PPP5/1KR1R3 w - - 0 1",
],
Expand All @@ -991,12 +990,7 @@ def test_invalid_fen_king_attacked(self, stockfish, fen):
# involve a king being attacked while it's the opponent's turn.
old_del_counter = Stockfish._del_counter
assert Stockfish._is_fen_syntax_valid(fen)
if (
fen == "8/8/8/3k4/3K4/8/8/8 b - - 0 1"
and stockfish.get_stockfish_major_version() >= 15
):
# Since for that FEN, SF 15 actually outputs a best move without crashing (unlike SF 14 and earlier).
return

assert not stockfish.is_fen_valid(fen)
assert Stockfish._del_counter == old_del_counter + 2

Expand Down

0 comments on commit 3d7744c

Please sign in to comment.