-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Added test case regarding failure of series/limit unless the expression is simplified #20674
base: master
Are you sure you want to change the base?
Conversation
Initially the issue was the failure of series/limit unless the expression is simplified first, but it is resoved in current master. So I have added test case addressing this one.
✅ Hi, I am the SymPy bot (v161). I'm here to help you write a release notes entry. Please read the guide on how to write release notes.
Click here to see the pull request description that was parsed.
|
@czgdp1807 Can you please guide me with this pull request what next to be done so that all checks will pass |
@Shardul555 your file contains trailing whitespaces |
…on is simplified Added the test case regarding failure of series/limit unless the expression is simplified. It is improvement on last commit as last one had unnecessary whitespaces.
sympy/series/tests/test_series.py
Outdated
@@ -202,6 +202,13 @@ def test_issue_9549(): | |||
assert series(y, x, oo) == x**(-5) - 1/x**4 + x**(-3) + 1/x + O(x**(-6), (x, oo)) | |||
|
|||
|
|||
def test_issue_9173(): | |||
var('p_0 p_1 p_2 p_3 b_0 b_1 b_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.
You are not storing them in variables which you are using, that's why test is failing.
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.
Thanks for guidance @sidhu1012
…ified This pull request will add the test case regarding failure of series problem until th the expression is simplified using .simplify() function.
sympy/series/tests/test_series.py
Outdated
@@ -202,6 +202,14 @@ def test_issue_9549(): | |||
assert series(y, x, oo) == x**(-5) - 1/x**4 + x**(-3) + 1/x + O(x**(-6), (x, oo)) | |||
|
|||
|
|||
def test_issue_9173(): | |||
from sympy import var |
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.
Imports should go on top of file.
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.
Ok I will do it after these checks will be completed.
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.
And var
should not be used in library code.
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.
Ok thank you @jksuom ,so can you suggest me what to use instead of var or simply where I will find the rules related to uses of variables.
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.
As used in other tests like test_issue_12791
, you can use symbols
instead
References to other Issues or PRs
#9173
Brief description of what is fixed or changed
Initially the issue was the failure of series/limit unless the expression is simplified first, but it is resoved in current master.
So I have added test case addressing this one.
Release Notes
NO ENTRY