update tests for min_n

This commit is contained in:
Zafir Stojanovski 2025-02-15 15:34:48 +01:00
parent 70e6a2a347
commit 7ffb6ab3f6

View file

@ -15,6 +15,14 @@ def test_binary_matrix_config_validation():
config = BinaryMatrixConfig(max_n=0) # Zero not allowed
config.validate()
with pytest.raises(AssertionError):
config = BinaryMatrixConfig(min_n=-1) # Negative not allowed
config.validate()
with pytest.raises(AssertionError):
config = BinaryMatrixConfig(min_n=0) # Zero not allowed
config.validate()
with pytest.raises(AssertionError):
config = BinaryMatrixConfig(p_zero=0) # <= 0 not allowed
config.validate()