-
-
Notifications
You must be signed in to change notification settings - Fork 695
Parse strings as multi-element data structures in tests #514
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
Comments
Inspiration for this could be found somewhere in https://github.com/Slicer/SlicerExecutionModel. |
@jhlegarreta adding a few example tests where this could be applied would make it a "good first issue". |
I should have done this when I opened the issue, I am really sorry. I had a hard time finding examples of these cases, either - because I am having a hard time remembering what I meant 🤦♂️,
But I think these cases illustrate what I meant (when git blaming the files, the commits that added the parser methods turn out to be mine, so probably this issue partially arose from writing them 🙃):
This one might also be relevant:
This one is an example file, not a test (but the same principle may apply):
So (I think that) the idea was/is that instead of specifying e.g. the image size test parameter as As an example, the following is a test where the spacing is required as 3 separate parameters:
In the case of other lists that do not influence the dimensionality of the template parameters, like in
|
Description
Some tests require a number of arguments that are part of the same data structures (e.g. the image size, or resolution). Having a utility function in a single place to parse the input parameter strings as a multi-element data structure (e.g. a vector) would be desirable.
Expected behavior
To be able to parse a string as a vector or whatever multi-element data structure.
Actual behavior
Developer's are forced to parse the string on each test that requires such an input.
The text was updated successfully, but these errors were encountered: