Skip to content

Commit

Permalink
Add test for location argument of CoordSysCartesian
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed Jul 17, 2016
1 parent f20cee8 commit 4bdc45d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sympy/vector/tests/test_coordsysrect.py
@@ -1,3 +1,5 @@
import pytest

from sympy.vector.coordsysrect import CoordSysCartesian
from sympy.vector.scalar import BaseScalar
from sympy import sin, cos, pi, ImmutableMatrix as Matrix, \
Expand All @@ -22,6 +24,9 @@ def test_func_args():
assert v.func(*v.args) == v
assert A.origin.func(*A.origin.args) == A.origin

pytest.raises(TypeError, lambda: CoordSysCartesian('B', parent=A,
location=Point('a')))


def test_coordsyscartesian_equivalence():
A = CoordSysCartesian('A')
Expand Down

0 comments on commit 4bdc45d

Please sign in to comment.