Skip to content

Commit 90b6167

Browse files
committed
-
1 parent ff2535b commit 90b6167

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source_py3/test_python_toolbox/test_combi/test_exhaustive.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def _check_variation_selection(variation_selection):
162162
slice_=(perm_space.slice_ if perm_space.is_sliced else None),
163163
**kwargs
164164
)
165-
165+
brute_perm_space_tuple = tuple(brute_perm_space)
166166

167167
assert perm_space.variation_selection == variation_selection
168168
assert perm_space.sequence_length == 7
@@ -177,6 +177,7 @@ def _check_variation_selection(variation_selection):
177177
assert perm_space.index(perm_space[-1]) > \
178178
perm_space.index(perm_space[0])
179179

180+
assert perm_space.length == len(brute_perm_space_tuple)
180181

181182
if variation_selection.is_partial:
182183
assert perm_space.n_unused_elements == 2
@@ -209,7 +210,7 @@ def _check_variation_selection(variation_selection):
209210

210211
# blocktodo: change to 100 after finished debugging
211212
for i, (perm, brute_perm_tuple) in enumerate(
212-
itertools.islice(zip(perm_space, brute_perm_space), 10)):
213+
itertools.islice(zip(perm_space, brute_perm_space_tuple), 10)):
213214

214215
assert tuple(perm) == brute_perm_tuple
215216
assert perm in perm_space

0 commit comments

Comments
 (0)