mirror of https://github.com/pyodide/pyodide.git
13 lines
239 B
Python
13 lines
239 B
Python
|
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
|
||
|
"""
|
||
|
)
|