[f2dace/dev, fortran] Now that we don't look up files from module names, and as such don't have the no-more-than-one-module-per-file rule, we can relax the test helper and also not pass a main
in ParseConfig
.
#1916
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Benefit:
In tests, now we can just
add_file()
once with the whole test code with all the modules and programs. Before, we had toadd_file()
each module separately, becauserecursive_ast_improver()
looked up files by module names, which didn't work if a file contained multiple modules. Now that we've replaced that function that does not assume anything about file names, we can add everything in one file, and it's valid (as long as it's a valid Fortran program).That in turn makes it easier to copy the test code in a file, verify if it compiles, edit it until it does, then copy it back.