mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-19 12:58:07 +00:00
clean up ransom note
This commit is contained in:
parent
acdc08bf94
commit
aae6a58e35
2 changed files with 28 additions and 1 deletions
|
|
@ -84,6 +84,11 @@ def test_group_anagrams_dataset_items():
|
|||
assert len(magazine) <= config.max_magazine_length
|
||||
assert solution == solvable
|
||||
|
||||
# Test the scoring
|
||||
assert dataset.score_answer(answer=item['answer'], entry=item) == 1.0
|
||||
assert dataset.score_answer(answer="gibberish", entry=item) == 0.01
|
||||
assert dataset.score_answer(answer=None, entry=item) == 0.0
|
||||
|
||||
|
||||
def test_ransom_note_dataset_iteration():
|
||||
"""Test that iteration respects dataset size"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue