mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 06:40:24 +01:00
[Tests] Added test to compare cov_Obs and Meas implementation.
This commit is contained in:
parent
f2a98bb5bd
commit
779dedf5b3
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue