pyodide/packages/sympy/test_sympy.py

13 lines
239 B
Python
Raw Normal View History

2020-08-03 13:04:15 +00:00
def test_sympy(selenium):
selenium.load_package("sympy")
assert selenium.run(
"""
import sympy
a, b = sympy.symbols('a,b')
c = sympy.sqrt(a**2 + b**2)
c.subs({a:3, b:4}) == 5
"""
)