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

flag: add missing short flag match in flag.to_struct, add test #22696

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

larpon
Copy link
Contributor

@larpon larpon commented Oct 30, 2024

No description provided.

}

fn test_edge_case() {
aio, no_matches := flag.to_struct[AppImageOptions](edge_case, skip: 1)!
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no need to extract a constant, since it is not used several times.
Moving it back to the test will make it easier to read/maintain.

Copy link
Member

@spytheman spytheman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work.

@spytheman spytheman merged commit dad8e3c into vlang:master Oct 30, 2024
67 checks passed
@larpon larpon deleted the flag/add-fix-and-test-for-bug branch October 30, 2024 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants