Initialisation du repository de Beta
This commit is contained in:
commit
14985f6dbb
9469 changed files with 1903273 additions and 0 deletions
|
|
@ -0,0 +1,10 @@
|
|||
"""Tests for simple tools for timing functions' execution. """
|
||||
|
||||
from sympy.utilities.timeutils import timed
|
||||
|
||||
def test_timed():
|
||||
result = timed(lambda: 1 + 1, limit=100000)
|
||||
assert result[0] == 100000 and result[3] == "ns", str(result)
|
||||
|
||||
result = timed("1 + 1", limit=100000)
|
||||
assert result[0] == 100000 and result[3] == "ns"
|
||||
Loading…
Add table
Add a link
Reference in a new issue