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

Swizzling an empty list throws exception instead of returning zero-width value #90

Closed
mkorbel1 opened this issue Mar 24, 2022 · 0 comments · Fixed by #115
Closed

Swizzling an empty list throws exception instead of returning zero-width value #90

mkorbel1 opened this issue Mar 24, 2022 · 0 comments · Fixed by #115
Assignees
Labels
bug Something isn't working

Comments

@mkorbel1
Copy link
Contributor

Describe the bug

Swizzling an empty list causes an "invalid radix-2 number" type of exception to get thrown since down the line there is a blank string passed to int.parse.

To Reproduce

<LogicValues>[].swizzle()

Expected behavior

An empty list should return a zero-width value.

Actual behavior

An exception related to the underlying implementation of swizzle is thrown, confusing users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant