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

Correct is_object typo. #22

Merged
merged 2 commits into from
Dec 15, 2022
Merged

Correct is_object typo. #22

merged 2 commits into from
Dec 15, 2022

Conversation

kjschiroo
Copy link
Contributor

It looks like there was a typo that made it so a IValue would be checked for its numerical-ness before being transformed into an object. This switches it to check for its object-ness. Addresses #21

It looks like there was a typo that made it so a IValue would be checked
for its numerical-ness before being transformed into an object. This
switches it to check for its object-ness.
@Diggsey
Copy link
Owner

Diggsey commented Dec 14, 2022

Thanks, could you add a regression test?

Add in a test case to confirm that `into_object` works for IValues that
are objects.
@kjschiroo
Copy link
Contributor Author

Sure! I've added a test in src/value.rs. Does that match the existing patterns of the project?

@Diggsey
Copy link
Owner

Diggsey commented Dec 15, 2022

Perfect, thanks 👍

@codecov-commenter
Copy link

codecov-commenter commented Dec 15, 2022

⚠️ 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 48.82%. Comparing base (f1305b9) to head (a80f70a).
Report is 13 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      #22      +/-   ##
==========================================
+ Coverage   48.65%   48.82%   +0.16%     
==========================================
  Files          10       10              
  Lines        3007     3009       +2     
==========================================
+ Hits         1463     1469       +6     
+ Misses       1544     1540       -4     

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

@Diggsey Diggsey merged commit 70cf5da into Diggsey:master Dec 15, 2022
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