mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-25 17:10:51 +00:00
feat: Add SimpleEquationsDataset to algebra module
Developed together with Benjamin Rio (benjamrio)
This commit is contained in:
parent
853777c290
commit
b66b1c09b9
5 changed files with 59 additions and 23 deletions
|
|
@ -16,8 +16,22 @@ def test_simple_equations_generation():
|
|||
|
||||
# Validate equation format
|
||||
equation = item["metadata"]["equation"]
|
||||
variable = item["metadata"]["variable"]
|
||||
assert "=" in equation
|
||||
assert item["metadata"]["variable"] in equation
|
||||
assert variable in equation
|
||||
|
||||
# Validate question format
|
||||
question = item["question"]
|
||||
assert variable in question
|
||||
assert equation in question
|
||||
assert any(
|
||||
prompt in question
|
||||
for prompt in [
|
||||
"Find the value of",
|
||||
"Solve for",
|
||||
"Determine the value of"
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
def test_simple_equations_config():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue