Skip to content

Fix sympy test #1009

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 16, 2025
Merged

Conversation

contradict
Copy link
Contributor

This test was failing locally with

Expression: SymPy.simplify(symbolics_to_sympy(Symbolics.solve_for(expr, p))) == (SymPy.solve(sexpr, sp))[1]
 Evaluated: -2*t*(x^2 + y(t) - 1)/(x^2 + x + y(t) - 1) == 2*t*(-x^2 - y(t) + 1)/(x^2 + x + y(t) - 1)

While equal, they are not the same expression. SymPy.simplify and SymPy.solve don't seem to guarantee identical expressions, so pass both results through simplify to ensure they are comparable.

This test was failin localy with

    Expression: SymPy.simplify(symbolics_to_sympy(Symbolics.solve_for(expr, p))) == (SymPy.solve(sexpr, sp))[1]
     Evaluated: -2*t*(x^2 + y(t) - 1)/(x^2 + x + y(t) - 1) == 2*t*(-x^2 - y(t) + 1)/(x^2 + x + y(t) - 1)

While equal, they are not the same expression. `SymPy.simplify` and
`SymPy.solve` don't seem to guarantee identical expressions, so pass
both results through `simplify` to ensure they are comparable.
@codecov-commenter
Copy link

codecov-commenter commented Nov 12, 2023

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.73%. Comparing base (ff30ebf) to head (c63229f).
Report is 85 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1009      +/-   ##
==========================================
+ Coverage   80.58%   80.73%   +0.14%     
==========================================
  Files          51       51              
  Lines        5136     5233      +97     
==========================================
+ Hits         4139     4225      +86     
- Misses        997     1008      +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@AJ0070
Copy link
Contributor

AJ0070 commented Jul 16, 2025

Thanks for correcting it

@ChrisRackauckas ChrisRackauckas merged commit be34414 into JuliaSymbolics:master Jul 16, 2025
16 of 17 checks passed
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.

4 participants