Skip to content
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

Handle BasicSymbolic expressions in test #1260

Merged
merged 2 commits into from
Sep 25, 2024

Conversation

contradict
Copy link
Contributor

The testing expression generator generates expressions of type Symbolics.BasicSymbolic{Number} when all the selected variables are of that type (generated by @syms instead of @variables).

Add a method to wrap these expressions with a Num before checking for cancelation.

The testing expression generator generates expressions of type
`Symbolics.BasicSymbolic{Number}` when all the selected variables are of
that type (generated by `@syms` instead of `@variables`).

Add a method to wrap these expressions with a `Num` before checking for
cancelation.
@codecov-commenter
Copy link

codecov-commenter commented Sep 4, 2024

⚠️ 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.81%. Comparing base (47cfd60) to head (1930715).
Report is 138 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    #1260       +/-   ##
===========================================
+ Coverage    8.30%   80.81%   +72.50%     
===========================================
  Files          46       47        +1     
  Lines        4549     4728      +179     
===========================================
+ Hits          378     3821     +3443     
+ Misses       4171      907     -3264     

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

@ChrisRackauckas
Copy link
Member

This is missing a test?

@contradict
Copy link
Contributor Author

This fixes a fuzz test that was failing locally, I'm not sure why it doesn't happen in CI. I'll extract the failing example and add it as a new test.

@ChrisRackauckas
Copy link
Member

Fuzz tests are a random. That sounds like something good to isolate.

@ChrisRackauckas ChrisRackauckas merged commit e2bf913 into JuliaSymbolics:master Sep 25, 2024
11 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.

3 participants