Skip to content

Commit f7eccf4

Browse files
fix straights tests
1 parent 6ef48f1 commit f7eccf4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/deck_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def test_empty_deal():
2626

2727
def test_poker_straight():
2828
deal = icepool.Deck(range(13), times=4).deal(5)
29-
result = best_run_evaluator.evaluate(deal).marginals[0] == 5
29+
result = best_run_evaluator.evaluate(deal) == 5
3030
assert result.equals(icepool.coin(9216, 2598960))
3131

3232

tests/evaluator_test.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ def test_standard_pool_zero_dice():
7979

8080

8181
def test_runs():
82-
result = icepool.BestStraightEvaluator()(icepool.standard_pool([12, 10, 8]))
82+
result = icepool.BestStraightEvaluator(include_outcome=True)(
83+
icepool.standard_pool([12, 10, 8]))
8384

8485
def func(*outcomes):
8586
outcomes = sorted(outcomes)
@@ -100,7 +101,7 @@ def func(*outcomes):
100101

101102
def test_runs_skip():
102103
die = icepool.Die([0, 10])
103-
result = icepool.BestStraightEvaluator()(die.pool(10))
104+
result = icepool.BestStraightEvaluator(include_outcome=True)(die.pool(10))
104105
assert result.outcomes() == ((1, 0), (1, 10))
105106

106107

0 commit comments

Comments
 (0)