mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-23 16:55:05 +00:00
update tests for min_n
This commit is contained in:
parent
70e6a2a347
commit
7ffb6ab3f6
1 changed files with 8 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue