[Fix] Also reject negative pos values

This commit is contained in:
Fabian Joswig 2026-07-15 09:29:37 +02:00
commit a1dc9c628e
2 changed files with 8 additions and 2 deletions

View file

@ -115,3 +115,9 @@ def test_covobs_pos_too_large():
cov = [[1, 0], [0, 1]]
with pytest.raises(ValueError):
Covobs(1.0, cov, 'test', pos=2)
def test_covobs_pos_negative():
cov = [[1, 0], [0, 1]]
with pytest.raises(ValueError):
Covobs(1.0, cov, 'test', pos=-1)