Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expand(): handle case of multiple ranges with leading zeros #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cmoussa1
Copy link
Member

@cmoussa1 cmoussa1 commented Sep 4, 2024

Problem

As noted in #32, the expand() function doesn't correctly handle hostlists with leading zeros in the ranges.


This PR reworks and restructures the expand() function to correctly handle ranges of leading zeros, particularly when there are multiple ranges.

It also adds a unit test using the example provided in #32 to confirm it is working as expected.

Fixes #32

Problem: As noted in LLNL#32, the expand() function doesn't correctly
handle hostlists with leading zeros in the ranges.

Rework and restructure the expand() function to correctly handle ranges
of leading zeros, particularly when there are multiple ranges.

Add a unit test using the example provided in LLNL#32 to confirm it is
working as expected.
@cmoussa1 cmoussa1 added the bug-fix fixes something that isn't working label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix fixes something that isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some lists expanded wrong
2 participants