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

Solved some Critical Issues in Formatting #83

Merged
merged 7 commits into from
Jun 24, 2021

Conversation

AliMuhammadOfficial
Copy link
Contributor

No description provided.

opengeode/Asn1scc.py Outdated Show resolved Hide resolved
opengeode/AdaGenerator.py Outdated Show resolved Hide resolved
@AliMuhammadOfficial
Copy link
Contributor Author

@maxime-esa should I create a pull request to implement unit testing for this repo?

asn1_context = (f'\n{process_asn1}-Context ::='' SEQUENCE {\n'
+ ",\n ".join(line.replace("_", "-").replace("'", '"') for line in context_elems)
+ "\n}\n")
asn1_context = ("\n{}-Context ::= SEQUENCE {}\n\n".format("hello", "\n,\n ".join(line.replace("_", "-").replace("'", '"') for line in context_elems)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this still there? I thought you had reverted it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really apologize for this. I changed butt not added in this commit I added code of my test version!

f'function To_{sortAda} (Src : {fromMod}) return {toMod} '
f"is ({toMod}'Enum_Val (Src'Enum_Rep));")
f"function To_{sortAda} (Src : {fromMod}) return {toMod} is \
({toMod}'Enum_Val (Src'Enum_Rep));")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a big fan of \ at the end of the lines, I prefer to keep it as it was

@maxime-esa maxime-esa merged commit addc52e into esa:master Jun 24, 2021
@maxime-esa
Copy link
Contributor

Thanks! About the unit tests, what do you have in mind? If the plan is to add some py.tests (in tests/pytests folder) then I fully approve

@AliMuhammadOfficial
Copy link
Contributor Author

AliMuhammadOfficial commented Jun 24, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants