Skip to content

Commit 9dce6e5

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

1 file changed

Lines changed: 4 additions & 46 deletions

File tree

tests/test_rsf.py

Lines changed: 4 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -16,59 +16,17 @@
1616
games.read_from_file("e02.efg"),
1717
[["1*", "21", "22"], ["1", "2"]],
1818
[
19-
np.array(
20-
[
21-
[Rational(1, 1), Rational(1, 1)],
22-
[Rational(0, 1), Rational(0, 1)],
23-
[Rational(0, 1), Rational(2, 1)],
24-
]
25-
),
26-
np.array(
27-
[
28-
[Rational(1, 1), Rational(1, 1)],
29-
[Rational(2, 1), Rational(3, 1)],
30-
[Rational(2, 1), Rational(0, 1)],
31-
]
32-
),
19+
np.array([["1", "1"], ["0", "0"], ["0", "2"]]),
20+
np.array([["1", "1"], ["2", "3"], ["2", "0"]]),
3321
],
3422
),
3523
# 2 players, 1 move each, so no reduction possible
3624
(
3725
games.read_from_file("sample_extensive_game.efg"),
3826
[["1", "2"], ["11", "12", "21", "22"]],
3927
[
40-
np.array(
41-
[
42-
[
43-
Rational(2, 1),
44-
Rational(2, 1),
45-
Rational(2, 1),
46-
Rational(2, 1),
47-
],
48-
[
49-
Rational(4, 1),
50-
Rational(6, 1),
51-
Rational(4, 1),
52-
Rational(6, 1),
53-
],
54-
]
55-
),
56-
np.array(
57-
[
58-
[
59-
Rational(3, 1),
60-
Rational(3, 1),
61-
Rational(3, 1),
62-
Rational(3, 1),
63-
],
64-
[
65-
Rational(5, 1),
66-
Rational(7, 1),
67-
Rational(5, 1),
68-
Rational(7, 1),
69-
],
70-
]
71-
),
28+
np.array([["2", "2", "2", "2"], ["4", "6", "4", "6"]]),
29+
np.array([["3", "3", "3", "3"], ["5", "7", "5", "7"]]),
7230
],
7331
),
7432
# Selten's Horse: game with three players

0 commit comments

Comments
 (0)