Created
September 27, 2014 14:44
-
-
Save rlamy/2fcb944ed462164ac4f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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