Skip to content

Commit

Permalink
Fix tests (#304)
Browse files Browse the repository at this point in the history
* fix tests

* remove unused lines of js
  • Loading branch information
bovard authored Nov 9, 2024
1 parent 0795b41 commit 271797f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions kaggle_environments/envs/chess/chess.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions kaggle_environments/envs/chess/test_chess.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ def test_chess_three_fold():
json = env.toJSON()
assert json["name"] == "chess"
assert json["statuses"] == ["DONE", "DONE"]
assert json["rewards"] == [0, 0]
assert json["rewards"] == [1.0, 1.0]

def test_chess_100_move_rule():
env = make("chess", debug=True)
env.run(["board_shuffle", "board_shuffle"])
json = env.toJSON()
assert json["name"] == "chess"
assert json["statuses"] == ["DONE", "DONE"]
assert json["rewards"] == [0, 0]
assert json["rewards"] == [1.0, 1.0]

def test_sufficient_material():
game = Game()
Expand Down

0 comments on commit 271797f

Please sign in to comment.