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

Fix expr2rulenode for lone Symbols and Numbers #100

Merged
merged 3 commits into from
Dec 12, 2024

Conversation

ReubenJ
Copy link
Member

@ReubenJ ReubenJ commented Dec 12, 2024

Conversion is currently failing on expressions like :(x), :(2), and :(3.14).

This PR addresses those cases.

Fails when the expr is just a symbol or a number.
Neither of these are actually expressions in Julia,
so `expr2rulenode` hasn't been defined for them yet--
it's only defined over `Expr`s, currently.
@ReubenJ ReubenJ added the bug Something isn't working label Dec 12, 2024
@ReubenJ ReubenJ requested a review from LoLo5689 December 12, 2024 07:21
@ReubenJ ReubenJ self-assigned this Dec 12, 2024
Copy link

codecov bot commented Dec 12, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 53.32%. Comparing base (ab79408) to head (d01aac7).
Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
src/rulenode_operators.jl 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #100      +/-   ##
==========================================
+ Coverage   52.60%   53.32%   +0.71%     
==========================================
  Files           7        7              
  Lines         557      557              
==========================================
+ Hits          293      297       +4     
+ Misses        264      260       -4     

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

Copy link
Contributor

@LoLo5689 LoLo5689 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks fine.

@ReubenJ ReubenJ merged commit 96f8fb3 into master Dec 12, 2024
5 checks passed
@ReubenJ ReubenJ deleted the fix/expr2rulenode-symbols-numbers branch December 12, 2024 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants