-
Notifications
You must be signed in to change notification settings - Fork 7
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
Mock assembly for testing and its program generator #23
Conversation
numba_rvsdg/mock_asm.py
Outdated
|
||
def test_double_exchange_loop(): | ||
asm = """ | ||
print Start |
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 would recommend using the textwrap.dedent
function here such that the asm
is indented like the Python code that defines it.
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.
indentation shouldn't matter. i probably could have indent the asm to the same level to the python source
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.
done
I'll be focusing on numba release this week. If you want to make changes to this PR or refactor it, feel free and don't wait for me. |
@sklam thank you! I move the module to the tests directory too so that it can be picked up by our CI! Thank you for the patch! |
I had to split the tests and definition of the mock_asm module, perhaps the imports could be fixed up. |
As title
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.
LGTM!
No description provided.