summaryrefslogtreecommitdiff
path: root/Qwen2.5-Eval/evaluation/latex2sympy/tests/pi_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'Qwen2.5-Eval/evaluation/latex2sympy/tests/pi_test.py')
-rwxr-xr-xQwen2.5-Eval/evaluation/latex2sympy/tests/pi_test.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/Qwen2.5-Eval/evaluation/latex2sympy/tests/pi_test.py b/Qwen2.5-Eval/evaluation/latex2sympy/tests/pi_test.py
new file mode 100755
index 0000000..050190d
--- /dev/null
+++ b/Qwen2.5-Eval/evaluation/latex2sympy/tests/pi_test.py
@@ -0,0 +1,15 @@
+from .context import assert_equal, _Mul, _Pow
+import pytest
+from sympy import pi, Symbol, acos, cos
+
+
+def test_pi_frac():
+ assert_equal("\\frac{\\pi}{3}", _Mul(pi, _Pow(3, -1)))
+
+
+def test_pi_nested():
+ assert_equal("\\arccos{\\cos{\\frac{\\pi}{3}}}", acos(cos(_Mul(pi, _Pow(3, -1)), evaluate=False), evaluate=False))
+
+
+def test_pi_arccos():
+ assert_equal("\\arccos{-1}", pi, symbolically=True)