mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-19 12:58:07 +00:00
Fix bug in normalize_answer method (#444)
This commit is contained in:
parent
c0e98f93b4
commit
9053009dbe
2 changed files with 8 additions and 1 deletions
|
|
@ -119,6 +119,10 @@ def test_prime_factorization_score_answer():
|
|||
answer = None
|
||||
assert dataset.score_answer(answer, item) == 0.0
|
||||
|
||||
# Answer is empty string
|
||||
answer = ""
|
||||
assert dataset.score_answer(answer, item) == 0.01
|
||||
|
||||
|
||||
def is_prime(n: int) -> bool:
|
||||
"""Helper function to check if a number is prime"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue