tests: gamma_method added to fuzzy test.

This commit is contained in:
Fabian Joswig 2023-01-20 11:49:44 +00:00
parent f33db8280e
commit 9ba09e6b8f
No known key found for this signature in database

View file

@ -8,10 +8,11 @@ from hypothesis import given, strategies as st
np.random.seed(0)
@given(st.lists(st.floats(allow_nan=False, allow_infinity=False, width=32), min_size=5), st.text())
def test_fuzzy_obs(data, string):
@given(st.lists(st.floats(allow_nan=False, allow_infinity=False, width=32), min_size=5), st.text(), st.floats(allow_nan=False, allow_infinity=False, width=32, min_value=0))
def test_fuzzy_obs(data, string, S):
my_obs = pe.Obs([data], [string])
my_obs * my_obs
my_obs.gamma_method(S=S)
def test_Obs_exceptions():