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

Add getNumberValue function #385

Merged
merged 3 commits into from
Apr 2, 2020
Merged

Add getNumberValue function #385

merged 3 commits into from
Apr 2, 2020

Conversation

hqsz
Copy link
Contributor

@hqsz hqsz commented Aug 15, 2019

Hello :) I use cJSON very well, but i found cJSON don't have getNumberValue.
So I add it. If cJSON object is not number type. I return Nan(not a number).

And i also follow Coding style which is in CONTRIBUTING.md.
At last i Add Unit Test to misc_tests.c, and test is successful.

Check and merge plz. thank u :)

@hqsz hqsz changed the title Develop Add getNumberValue function Aug 15, 2019
Copy link
Collaborator

@Alanscut Alanscut left a comment

Choose a reason for hiding this comment

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

Thanks your contributions, would you mind making some changes?

tests/misc_tests.c Outdated Show resolved Hide resolved
@Alanscut Alanscut merged commit 5437b79 into DaveGamble:develop Apr 2, 2020
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