Skip to content

Instantly share code, notes, and snippets.

@rlamy
Created September 27, 2014 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rlamy/2fcb944ed462164ac4f8 to your computer and use it in GitHub Desktop.
Save rlamy/2fcb944ed462164ac4f8 to your computer and use it in GitHub Desktop.
diff --git a/sympy/physics/vector/tests/test_frame.py b/sympy/physics/vector/tests/test_frame.py
index b1a55d2..3c3af2c 100644
--- a/sympy/physics/vector/tests/test_frame.py
+++ b/sympy/physics/vector/tests/test_frame.py
@@ -7,6 +7,13 @@
A = ReferenceFrame('A')
+def test_simple_caching():
+ A1 = ReferenceFrame('A')
+ A2 = ReferenceFrame('A')
+ assert CoordinateSym('Ax', A1, 0) == A1[0]
+ assert CoordinateSym('Ax', A2, 0) == A2[0]
+
+
def test_coordinate_vars():
"""Tests the coordinate variables functionality"""
assert CoordinateSym('Ax', A, 0) == A[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment