-
-
Notifications
You must be signed in to change notification settings - Fork 46.5k
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
feat: add testcase of polynom_for_points #11811
Conversation
>>> print(points_to_polynomial([[1, 1], [1, 2], [1, 3]])) | ||
x=1 | ||
>>> print(points_to_polynomial([[1, 1], [2, 2], [2, 2]])) |
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.
Please try removing the print()
...
>>> print(points_to_polynomial([[1, 1], [1, 2], [1, 3]])) | |
x=1 | |
>>> print(points_to_polynomial([[1, 1], [2, 2], [2, 2]])) | |
>>> points_to_polynomial([[1, 1], [1, 2], [1, 3]]) | |
x=1 | |
>>> points_to_polynomial([[1, 1], [2, 2], [2, 2]]) |
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.
Please try removing the
print()
...
@cclauss now check I removed the print statement but I did't see any major change in output
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.
That sounds right because calling print()
is not usually needed in doctests. Can you please remove print()
from all tests in this file then I think we can land this.
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.
Sure
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.
hi @cclauss check I removed the print from remaining place of polynom_for_points test cases
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.
Nice! Thanks.
* feat: add testcase of polynom_for_points * fix: remove the print from the testcase of points_to_polynomial * fix: remove print statement from old test cases
Describe your change:
Checklist: