Skip to content

Commit

Permalink
more-test
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushbisht2001 committed Feb 11, 2021
1 parent 782efd5 commit 8bcc6b2
Showing 1 changed file with 55 additions and 1 deletion.
56 changes: 55 additions & 1 deletion sympy/series/tests/test_series.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from sympy import sin, cos, exp, E, series, oo, S, Derivative, O, Integral, \
Function, PoleError, log, sqrt, N, Symbol, Subs, pi, symbols, atan, LambertW, Rational
Function, PoleError, log, sqrt, N, Symbol, Subs, pi, symbols, atan, LambertW, Rational, tan, cot, sec, cosec
from sympy.abc import x, y, n, k
from sympy.testing.pytest import raises
from sympy.series.gruntz import calculate_series
Expand All @@ -17,6 +17,30 @@ def test_cos():
assert e1 == e2


def test_tan():
e1 = tan(x).series(x, 0)
e2 = series(tan(x), x, 0)
assert e1 == e2


def test_cot():
e1 = cot(x).series(x, 0)
e2 = series(cot(x), x, 0)
assert e1 == e2


def test_sec():
e1 = sec(x).series(x, 0)
e2 = series(sec(x), x, 0)
assert e1 == e2


def test_cosec():
e1 = cosec(x).series(x, 0)
e2 = series(cosec(x), x, 0)
assert e1 == e2


def test_exp():
e1 = exp(x).series(x, 0)
e2 = series(exp(x), x, 0)
Expand All @@ -29,6 +53,36 @@ def test_exp2():
assert e1 == e2


def test_exp3():
e1 = exp(sin(x)).series(x, 0)
e2 = series(exp(sin(x)), x, 0)
assert e1 == e2


def test_exp4():
e1 = exp(tan(x)).series(x, 0)
e2 = series(exp(tan(x)), x, 0)
assert e1 == e2


def test_exp5():
e1 = exp(cot(x)).series(x, 0)
e2 = series(exp(cot(x)), x, 0)
assert e1 == e2


def test_exp6():
e1 = exp(sec(x)).series(x, 0)
e2 = series(exp(sec(x)), x, 0)
assert e1 == e2


def test_exp7():
e1 = exp(cosec(x)).series(x, 0)
e2 = series(exp(cosec(x)), x, 0)
assert e1 == e2


def test_issue_5223():
assert series(1, x) == 1
assert next(S.Zero.lseries(x)) == 0
Expand Down

0 comments on commit 8bcc6b2

Please sign in to comment.