mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-19 12:58:07 +00:00
test: Add size parameter and improve test case for QuantumLockDataset
This commit is contained in:
parent
8a5cecb939
commit
01dfae6fe7
1 changed files with 2 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ def test_quantumlock_items():
|
|||
"""Test basic properties and solution of generated items"""
|
||||
config = QuantumLockConfig(
|
||||
difficulty=10,
|
||||
size=25,
|
||||
)
|
||||
dataset = QuantumLockDataset(config)
|
||||
|
||||
|
|
@ -19,5 +20,5 @@ def test_quantumlock_items():
|
|||
assert "solution_path" in item["metadata"]
|
||||
assert "difficulty" in item["metadata"]
|
||||
|
||||
assert dataset.score_answer(answer=item['metadata']['solution_path'], entry=item) == 1.0
|
||||
assert dataset.score_answer(answer=item["metadata"]["solution_path"], entry=item) == 1.0
|
||||
assert dataset.score_answer(answer=None, entry=item) == 0.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue