mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-19 12:58:07 +00:00
test: Add deterministic test for RubiksCubeDataset __get_item__()
This commit is contained in:
parent
2653a28903
commit
08ee435d47
1 changed files with 10 additions and 0 deletions
|
|
@ -15,6 +15,16 @@ def test_rubikscube_config_validation():
|
|||
config.validate()
|
||||
|
||||
|
||||
def test_rubikscube_deterministic():
|
||||
"""Test that dataset generates same items with same seed"""
|
||||
config = RubiksCubeConfig(seed=42, size=15)
|
||||
dataset1 = RubiksCubeDataset(config)
|
||||
dataset2 = RubiksCubeDataset(config)
|
||||
|
||||
for i in range(15): # Only check first 15 entries for speed
|
||||
assert dataset1[i] == dataset2[i]
|
||||
|
||||
|
||||
def test_rubikscube_items():
|
||||
"""Test basic properties and solution of generated items"""
|
||||
config = RubiksCubeConfig(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue