mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-19 12:58:07 +00:00
Apply black formatting fixes
This commit is contained in:
parent
6a9f3860a0
commit
6e030c174a
2 changed files with 7 additions and 2 deletions
|
|
@ -95,7 +95,10 @@ def verify_cryptarithm_solution(
|
|||
# Check if sum is correct
|
||||
computed_sum = sum(word_numbers)
|
||||
if computed_sum != result_number:
|
||||
return False, f"Arithmetic equation not satisfied: {word_numbers} sums to {computed_sum}, expected {result_number}"
|
||||
return (
|
||||
False,
|
||||
f"Arithmetic equation not satisfied: {word_numbers} sums to {computed_sum}, expected {result_number}",
|
||||
)
|
||||
|
||||
except (KeyError, ValueError) as e:
|
||||
return False, f"Error applying mapping: {e}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue