Repository navigation
test/func: created a test and function for MorphFuncy #186
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -67,6 +67,7 @@ def test_funcy(function, parameters, expected_function): | |
| x_morph_actual, y_morph_actual, x_target_actual, y_target_actual = ( | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a reason you have the function call inside parens? It should work the same way without these and this is somewhat unconventional and therefore distracting?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is same as comment above, this is modified by the hooks. |
||
| morph.morph(x_morph, y_morph, x_target, y_target) | ||
| ) | ||
|
|
||
| assert np.allclose(y_morph_actual, y_morph_expected) | ||
| assert np.allclose(x_morph_actual, x_morph_expected) | ||
| assert np.allclose(x_target_actual, x_target) | ||
|
|
||
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 wonder if this would be easier to read with judiciously placed blank lines, maybe after each code block, but play around till it looks nice? I am not sure if there is a docstring standard for this, in which case follow it, but if not, then I think a few blank lines could increase readability.