Skip to content

Commit 2ec3ed8

Browse files
committed
Add another test at another magnitude.
1 parent d9bf5aa commit 2ec3ed8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_complexity.py

+2
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ def make_names(cls, width, letters=string.ascii_lowercase):
5050
['a', 'b']
5151
>>> list(TestComplexity.make_names(30))
5252
['aa', 'ab', ..., 'bd']
53+
>>> list(TestComplexity.make_names(17124))
54+
['aaa', 'aab', ..., 'zip']
5355
"""
5456
# determine how many products are needed to produce width
5557
n_products = max(1, math.ceil(math.log(width, len(letters))))

0 commit comments

Comments
 (0)