-
Notifications
You must be signed in to change notification settings - Fork 8
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
[FIX] Fix EnumValidator #91
Conversation
test/cli/iGenVar_cli_test.cpp
Outdated
{ | ||
"[Error] Value parse failed for -m: Argument 9 could not be parsed as type std::string.\n" | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This unhelpful error message is fixed by issue seqan/seqan3#2464.
…s) can be used and give a nice help page view. Signed-off-by: Lydia Buntrock <[email protected]>
3488bf5
to
02b1949
Compare
02b1949
to
04253ce
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good. I only have one tiny comment about the test cases.
{ | ||
cli_test_result result = execute_app("iGenVar"); | ||
std::string expected | ||
std::string expected_res |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This local variable has the same name as the global variable above. Maybe rename to expected_res_no_options
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or we move the global variable into the test cases which use it? I guess we could decide to either define all result and error messages above the test cases or inside each test case. A mix of both is confusing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Signed-off-by: Lydia Buntrock <[email protected]>
Signed-off-by: Lydia Buntrock <[email protected]>
1b56376
to
1c9d468
Compare
Resolves #78
Update EnumValidator such that
args.methods
(detection_methods) can be used and give a nice help page view.EDIT (22.03.2021): We should probably wait for seqan/seqan3#2464 and update the seqan3 library.
EDIT (06.04.2021): We also want to wait for seqan/seqan3#2502 to avoid another seqan3 version change.
EDIT (07.04.2021): Both seqan PRs are merged now. This PR can get merged after the reviews.