Skip to content

Commit

Permalink
Reset hash table between two calls to get_wdl_stats in a test.
Browse files Browse the repository at this point in the history
  • Loading branch information
johndoknjas committed Jun 2, 2024
1 parent c70c763 commit 46cff5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/stockfish/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -914,6 +914,7 @@ def test_get_wdl_stats(self, stockfish: Stockfish):
wdl_stats_3 = stockfish.get_wdl_stats()
assert isinstance(wdl_stats_3, list) and len(wdl_stats_3) == 3

stockfish._prepare_for_new_position()
wdl_stats_4 = stockfish.get_wdl_stats(get_as_tuple=True)
assert isinstance(wdl_stats_4, tuple) and len(wdl_stats_4) == 3
assert wdl_stats_3 == list(wdl_stats_4)
Expand Down

0 comments on commit 46cff5d

Please sign in to comment.