Skip to content

Commit

Permalink
add simple test for bound generator
Browse files Browse the repository at this point in the history
  • Loading branch information
HighDiceRoller committed Dec 27, 2024
1 parent 0adac39 commit 3b9781c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/multiset_function_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,12 @@ def evaluator(a):
return a.sum()

assert evaluator(d6.pool(3)) == 3 @ d6


def test_bound_generator():

@multiset_function
def evaluator(a):
return (a + d6.pool(2)).sum()

assert evaluator(d6.pool(1)) == 3 @ d6

0 comments on commit 3b9781c

Please sign in to comment.