Skip to content

Commit

Permalink
bundled gt tests into game_theory folder
Browse files Browse the repository at this point in the history
  • Loading branch information
mmschlk committed Dec 20, 2024
1 parent 2ee6d95 commit 45c37cb
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
Empty file.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -151,17 +151,15 @@ def test_basic_functions():


def test_lazy_computation():
"""Tests if the lazy computation is correct."""
"""Tests if the lazy computation (calling without params) works."""
n = 5
soum = SOUM(n, n_basis_games=10)
exact_computer = ExactComputer(n_players=n, game_fun=soum)
isinstance(repr(exact_computer), str)
isinstance(str(exact_computer), str)
# print("before call")
_ = exact_computer("SV", 1)
# print("after call")
# print(exact_computer.baseline_value)
# print(exact_computer.game_values)
sv = exact_computer("SV", 1)
assert sv.index == "SV"
assert sv.max_order == 1


@pytest.fixture
Expand Down
File renamed without changes.

0 comments on commit 45c37cb

Please sign in to comment.