diff --git a/tests/multiset_function_test.py b/tests/multiset_function_test.py index 1bcfc577..42e446f8 100644 --- a/tests/multiset_function_test.py +++ b/tests/multiset_function_test.py @@ -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