diff --git a/tests/correlators_test.py b/tests/correlators_test.py index 77f35b27..0502462c 100644 --- a/tests/correlators_test.py +++ b/tests/correlators_test.py @@ -668,6 +668,10 @@ def test_matrix_trace(): assert el == 0 + with pytest.raises(ValueError): + corr.item(0, 0).trace() + + def test_corr_roll(): T = 4 rn = lambda : np.random.normal(0.5, 0.1)