mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-05-01 17:45:24 +00:00
refactor: Change word sorting answer format from list string to comma-separated string
This commit is contained in:
parent
c3b6af35f0
commit
557fac66bf
2 changed files with 2 additions and 2 deletions
|
|
@ -94,7 +94,7 @@ def test_word_sorting_dataset_items():
|
|||
|
||||
# Verify sorting
|
||||
direction = item["metadata"]["direction"]
|
||||
sorted_words = eval(item["answer"])
|
||||
sorted_words = item["answer"].split(", ")
|
||||
if direction == "ascending":
|
||||
assert sorted_words == sorted(sorted_words)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue