From 779dedf5b3df31b472c9582fe073e61ea7edd378 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Sun, 17 Nov 2024 12:24:38 +0100 Subject: [PATCH] [Tests] Added test to compare cov_Obs and Meas implementation. --- tests/obs_test.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/obs_test.py b/tests/obs_test.py index aa9e5bb2..c21a250d 100644 --- a/tests/obs_test.py +++ b/tests/obs_test.py @@ -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