Skip to content

Commit

Permalink
[Tests] Added test to compare cov_Obs and Meas implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
fjosw committed Nov 17, 2024
1 parent f2a98bb commit 779dedf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/obs_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 779dedf

Please sign in to comment.