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

Mock assembly for testing and its program generator #23

Merged
merged 5 commits into from
Apr 28, 2023

Conversation

sklam
Copy link
Member

@sklam sklam commented Mar 24, 2023

No description provided.


def test_double_exchange_loop():
asm = """
print Start
Copy link
Member

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.

Copy link
Member Author

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

Copy link
Member

Choose a reason for hiding this comment

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

done

@sklam
Copy link
Member Author

sklam commented Mar 27, 2023

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.

@esc esc marked this pull request as ready for review March 29, 2023 17:02
@esc
Copy link
Member

esc commented Mar 29, 2023

@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!

@esc esc requested a review from kc611 March 29, 2023 17:12
@esc
Copy link
Member

esc commented Mar 30, 2023

I had to split the tests and definition of the mock_asm module, perhaps the imports could be fixed up.

Copy link
Contributor

@kc611 kc611 left a comment

Choose a reason for hiding this comment

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

LGTM!

@esc esc merged commit 9d190fa into numba:main Apr 28, 2023
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.

3 participants