1
0
mirror of https://github.com/MikeMcl/decimal.js.git synced 2024-10-27 20:34:12 +00:00

search for more exampoles

This commit is contained in:
Alden 2023-02-13 14:35:27 -05:00
parent b3142b4c60
commit 64906296b6

View File

@ -39,7 +39,7 @@ def assert_matches(x, mpfunc, jsfunc=None):
integers(min_value=-99, max_value=99),
).map(lambda tup: tup[0] * Decimal(10) ** tup[1])
)
@settings(max_examples=1000)
@settings(max_examples=100_000)
def test_matches(x, fn):
assert_matches(x, fn)
@ -57,7 +57,7 @@ def test_matches(x, fn):
integers(min_value=-99, max_value=99),
).map(lambda tup: tup[0] * Decimal(10) ** tup[1])
)
@settings(max_examples=1000)
@settings(max_examples=100_000)
def test_positive_domain(x, fn):
assert_matches(x, fn)
@ -68,7 +68,7 @@ def test_positive_domain(x, fn):
allow_nan=False, allow_infinity=False, min_value=-1, max_value=1, places=14
)
)
@settings(max_examples=1000)
@settings(max_examples=100_000)
def test_inverse_trig(x, fn):
assert_matches(x, fn)
@ -82,7 +82,7 @@ def test_inverse_trig(x, fn):
integers(min_value=-99, max_value=3),
).map(lambda tup: tup[0] * Decimal(10) ** tup[1])
)
@settings(max_examples=1000)
@settings(max_examples=100_000)
def test_small_domain(x, fn):
assert_matches(x, fn)
@ -94,6 +94,6 @@ def test_small_domain(x, fn):
integers(min_value=0, max_value=99),
).map(lambda tup: tup[0] * Decimal(10) ** tup[1])
)
@settings(max_examples=1000)
@settings(max_examples=100_000)
def test_acosh(x):
assert_matches(x, 'acosh')