Closed Tagl closed 4 months ago
Looks good from a glance! When I make a pass through the active PR list a little later I can add some tests before merging.
@eliotwrobson @Tagl Looks like a great addition to me! Thank you for this!
I am converting the PR to Draft state until more tests are added.
@Tagl added a couple of test cases and encountered a bug I commented on:
I think this can be avoided just by popping from the char stack if the size goes over the length limit.
@Tagl for this, should the stop condition be changed to when the algorithm hits the string of all the lexicographically last character of length max_length
? I think that might fix the issue I found in my testing.
Edit: just a heads up that we'll probably be closing up the PyOpenSci review soon, and it would be awesome if the release after that could include the changes here.
I'll take a look tomorrow
Should be fixed now, I added one more edge case to test for as well.
Yes, I believe so.
Closes #207
Might be wise to add a few more tests.