Skip to content

Conversation

@AnvithaCodes
Copy link

I noticed the sympy_to_prefix logic in utils/ didn't have any dedicated tests, so I added some basic coverage to make sure math expressions are parsing correctly before they hit the model .

Changes:

  • Added test_prefix.py using unittest.

  • Covers standard arithmetic (add, mul) and nested stuff like sin(x+y) or exp.

  • Verified the format_integer edge cases (e.g., how it handles sp.Integer(42)).

Ran this locally with python -m unittest and everything is passing. Good to have this as a safety net for the regression pipeline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant