Skip to content

Commit

Permalink
Add another test at another magnitude.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Mar 13, 2024
1 parent d9bf5aa commit 2ec3ed8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_complexity.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ def make_names(cls, width, letters=string.ascii_lowercase):
['a', 'b']
>>> list(TestComplexity.make_names(30))
['aa', 'ab', ..., 'bd']
>>> list(TestComplexity.make_names(17124))
['aaa', 'aab', ..., 'zip']
"""
# determine how many products are needed to produce width
n_products = max(1, math.ceil(math.log(width, len(letters))))
Expand Down

0 comments on commit 2ec3ed8

Please sign in to comment.