-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
Importing issues with requirements and templates #3147
Conversation
src/libasr/modfile.cpp
Outdated
@@ -7,6 +7,7 @@ | |||
#include <libasr/serialization.h> | |||
#include <libasr/bwriter.h> | |||
|
|||
#include <libasr/pickle.h> |
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 might not be needed here.
Some of the new reference tests are 14K of lines, which will increase the size of the git repository. Do we need to check all that? Or can we just run it via integration tests. |
Does it make sense to keep the original all-in-one-file test (to ensure that still works), as well as the new split tests? |
Other than that, the changes look good to me. |
@certik Some of the tests are superfluous, I want to combine them first. For the matrix example, just the combined one should be enough. Integration test for the split files should be enough. However, I don't know how to add split files into the integration tests. |
Look at the modules_15 test, that contains several files as well. You probably need to add a main program, so that it creates an executable that can be run. |
I follow the other example, added the extra files into |
We have to debug it. |
@@ -564,6 +564,51 @@ static inline std::string type_to_str(const ASR::ttype_t *t) | |||
} | |||
} | |||
|
|||
static inline std::string type_to_str_with_substitution(const ASR::ttype_t *t, |
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.
Can you document what exactly this function does and how it differs to the other similar function for type comparison?
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.
Got it! I'll add the documentation in a separate pull request.
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.
I think this is good enough to merge. Left a comment to improve docs.
Addressing issues #3139 and #3138.
The following files make up the matrix example in separate modules: