[Tests] Added test to compare cov_Obs and Meas implementation.

This commit is contained in:
Fabian Joswig 2024-11-17 12:24:38 +01:00
parent f2a98bb5bd
commit 779dedf5b3

View file

@ -1484,3 +1484,11 @@ def test_meas():
def test_square_cov_obs():
cov = pe.cov_Obs(1, 0.1 ** 2, "testing")
cov2 = cov ** 2
def test_covobs_equal_meas():
value = 1.1
standard_error = 0.23
meas = pe.Meas(value, standard_error)
covo = pe.cov_Obs(value, standard_error ** 2, meas.names[0])
assert covo == meas