Skip to content

Commit e960a5b

Browse files
committed
-
1 parent 0de8232 commit e960a5b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

source_py3/python_toolbox/math_tools/sequences.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def shitfuck(k, recurrence_counter):
7272
assert recurrence_counter
7373
# (Works because `FrozenCrateCounter` has a functioning `__bool__`,
7474
# unlike Python's `Counter`.)
75-
return 1
75+
return len(recurrence_counter)
7676
try:
7777
return _shitfuck_cache[(k, recurrence_counter)]
7878
except KeyError:

source_py3/test_python_toolbox/test_combi/test_perm_space.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,4 +503,6 @@ def test_recurrent():
503503

504504
assert recurrent_perm_space.get_fixed({1: 'b',}).length == 14
505505

506+
assert PermSpace('aab', n_elements=1).length == 2
507+
506508
# blocktodo: Don't forget getitem and index tests of course...

0 commit comments

Comments
 (0)