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
Increase test coverage in series.py #20945
base: master
Are you sure you want to change the base?
Conversation
✅ 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.
|
@oscargus , I tried to add more test cases for series. Any suggestion will be highly appreciated. |
sympy/series/tests/test_series.py
Outdated
@@ -17,6 +17,30 @@ def test_cos(): | |||
assert e1 == e2 | |||
|
|||
|
|||
def test_tan(): |
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.
Would it be better to merge all these tests and test_sin
and test_cos
into one test_trigonometric
? Same for the multiple test_exp
functions.
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, @0sidharth , now its looks good..
0ff0213
to
e1acdfb
Compare
@jksuom , can you please check this PR, Whenever you get time... |
sympy/solvers/tests/test_solvers.py
Outdated
|
||
|
||
def test_issue_4886(): | ||
Ra , Rb = var('Ra , Rb',positive = True) |
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.
Do you need to use pow
? Why not m = a**2 + b**2
var
should not be used in library code. Use symbols
instead.
Follow PEP8 conventions throughout, a few pointers -
There should be a space after ,
, and no space before, there should be spaces around +
and -
, assignment operator should not have extra leading spaces to make it aligned, only one space before and one after is fine, assigning values to function parameters should not have any spaces around assignment operator (positive=True
)
You also need to resolve the conflicts so that the tests can run |
@0sidharth , can u pls help me .. how can I resolve these conflicts?? |
Refer this: #18152 (comment) |
a015e32
to
70b2a6c
Compare
This reverts commit 782efd5.
@oscarbenjamin , please review this PR ... |
e1 = cos(x).series(x, 0) | ||
e2 = series(cos(x), x, 0) | ||
assert e1 == e2 | ||
|
||
e1 = tan(x).series(x, 0) | ||
e2 = series(tan(x), x, 0) | ||
assert e1 == e2 |
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.
These tests don't seem very interesting. How exactly do they increase coverage?
I would have thought that a better test would actually show what the series should be.
Added more tests for series.
References to other Issues or PRs
Refer: #16318
Brief description of what is fixed or changed
Other comments
Release Notes
NO ENTRY