Skip to content

Commit 8c0e8e9

Browse files
committed
using strings in fixtures not gbt.Rational
1 parent 9dce6e5 commit 8c0e8e9

1 file changed

Lines changed: 4 additions & 38 deletions

File tree

tests/test_rsf.py

Lines changed: 4 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import pytest
33

44
import pygambit as gbt
5-
from pygambit import Rational
65

76
from . import games
87

@@ -34,42 +33,9 @@
3433
games.read_from_file("e01.efg"),
3534
[["1", "2"], ["1", "2"], ["1", "2"]],
3635
[
37-
np.array(
38-
[
39-
[
40-
[Rational(1, 1), Rational(1, 1)],
41-
[Rational(4, 1), Rational(0, 1)],
42-
],
43-
[
44-
[Rational(3, 1), Rational(0, 1)],
45-
[Rational(3, 1), Rational(0, 1)],
46-
],
47-
]
48-
),
49-
np.array(
50-
[
51-
[
52-
[Rational(1, 1), Rational(1, 1)],
53-
[Rational(4, 1), Rational(0, 1)],
54-
],
55-
[
56-
[Rational(2, 1), Rational(0, 1)],
57-
[Rational(2, 1), Rational(0, 1)],
58-
],
59-
]
60-
),
61-
np.array(
62-
[
63-
[
64-
[Rational(1, 1), Rational(1, 1)],
65-
[Rational(0, 1), Rational(1, 1)],
66-
],
67-
[
68-
[Rational(2, 1), Rational(0, 1)],
69-
[Rational(2, 1), Rational(0, 1)],
70-
],
71-
]
72-
),
36+
np.array([[["1", "1"], ["4", "0"]], [["3", "0"], ["3", "0"]]]),
37+
np.array([[["1", "1"], ["4", "0"]], [["2", "0"], ["2", "0"]]]),
38+
np.array([[["1", "1"], ["0", "1"]], [["2", "0"], ["2", "0"]]]),
7339
],
7440
),
7541
# Myerson 2-card poker; game with chance node
@@ -118,7 +84,7 @@ def test_reduced_strategic_form(
11884
):
11985
"""
12086
We test two things:
121-
- that the stratgegy labels are as expected
87+
- that the strategy labels are as expected
12288
(these use positive integers and *'s', rather than labels of moves even if they exist)
12389
- that the payoff tables are correct, which is done via game.to_arrays()
12490
"""

0 commit comments

Comments
 (0)