Skip to content

Commit c5d5256

Browse files
committed
Added a second test.
1 parent 75f0e37 commit c5d5256

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_generate.py

+5
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ def test_nth_p():
3737
assert comb == nth_product(i, a, b, c, d)
3838

3939

40+
def test_nth_p2():
41+
v = nth_product(8, range(2), range(2), range(2), range(2))
42+
assert v == (1,0,0,0)
43+
44+
4045
def test_nth_products():
4146
a, b, c = [1, 2, 3, 4, 5, 6], [1, 2, 3, 4, 5, 6], [1, 2, 3, 4, 5, 6]
4247
L = list(nth_products(10, a, b))

0 commit comments

Comments
 (0)