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

Add CLI argument to override random chars for while/if statements #85

Open
MysteryBlokHed opened this issue Jul 23, 2021 · 0 comments
Open
Labels
source Affects the project's source tests Affects the project's tests

Comments

@MysteryBlokHed
Copy link
Owner

Right now, the tests for the contents of while loops have to use globs to find the correct files. If more than one while loop was to be used in a test, then it would take some extra code to find out which output file was generated by which loop. This problem gets more complicated with if/else statements (#84), since they generate more files and some files won't always exist.

Adding a CLI option to pass a list of chars to use instead (eg. --chars aaaa,bbbb) could solve this problem, since the output files will always have the same characters at the end.

I think that Clap can deal with multiple values passed for the same argument, but I'm not sure if it's comma-separated, or if you pass the argument more than once (eg. --chars aaaa --chars bbbb), or something else.

@MysteryBlokHed MysteryBlokHed added the tests Affects the project's tests label Jul 23, 2021
@MysteryBlokHed MysteryBlokHed added the source Affects the project's source label Jul 23, 2021
@MysteryBlokHed MysteryBlokHed added this to the Databind 0.7 milestone Aug 7, 2021
@MysteryBlokHed MysteryBlokHed removed this from the Databind 0.7 milestone Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
source Affects the project's source tests Affects the project's tests
Projects
None yet
Development

No branches or pull requests

1 participant