Skip to content

Add unit tests for DoubleConversions::toString (#56109)#56109

Closed
christophpurrer wants to merge 1 commit intofacebook:mainfrom
christophpurrer:export-D96625901
Closed

Add unit tests for DoubleConversions::toString (#56109)#56109
christophpurrer wants to merge 1 commit intofacebook:mainfrom
christophpurrer:export-D96625901

Conversation

@christophpurrer
Copy link
Contributor

@christophpurrer christophpurrer commented Mar 16, 2026

Summary:

Add comprehensive unit tests for the toString(double, char) function in DoubleConversions.cpp. The tests cover:

  • Zero and negative zero
  • Positive and negative integers
  • Fractional values
  • Very small and very large values
  • Scientific notation for values below 1e-6
  • Infinity and NaN serialization as "0"
  • Suffix character appending (including null suffix)
  • Suffix behavior with special values (infinity, NaN)

Changelog: [Internal]

Differential Revision: D96625901

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 16, 2026
@meta-codesync
Copy link

meta-codesync bot commented Mar 16, 2026

@christophpurrer has exported this pull request. If you are a Meta employee, you can view the originating Diff in D96625901.

christophpurrer added a commit to christophpurrer/react-native-macos that referenced this pull request Mar 16, 2026
Summary:

Add comprehensive unit tests for the `toString(double, char)` function in `DoubleConversions.cpp`. The tests cover:
- Zero and negative zero
- Positive and negative integers
- Fractional values
- Very small and very large values
- Scientific notation for values below 1e-6
- Infinity and NaN serialization as "0"
- Suffix character appending (including null suffix)
- Suffix behavior with special values (infinity, NaN)

Changelog: [Internal]

Differential Revision: D96625901
christophpurrer added a commit to christophpurrer/react-native-macos that referenced this pull request Mar 16, 2026
Summary:

Add comprehensive unit tests for the `toString(double, char)` function in `DoubleConversions.cpp`. The tests cover:
- Zero and negative zero
- Positive and negative integers
- Fractional values
- Very small and very large values
- Scientific notation for values below 1e-6
- Infinity and NaN serialization as "0"
- Suffix character appending (including null suffix)
- Suffix behavior with special values (infinity, NaN)

Changelog: [Internal]

Differential Revision: D96625901
@meta-codesync meta-codesync bot changed the title Add unit tests for DoubleConversions::toString Add unit tests for DoubleConversions::toString (#56109) Mar 16, 2026
christophpurrer added a commit to christophpurrer/react-native-macos that referenced this pull request Mar 16, 2026
Summary:

Add comprehensive unit tests for the `toString(double, char)` function in `DoubleConversions.cpp`. The tests cover:
- Zero and negative zero
- Positive and negative integers
- Fractional values
- Very small and very large values
- Scientific notation for values below 1e-6
- Infinity and NaN serialization as "0"
- Suffix character appending (including null suffix)
- Suffix behavior with special values (infinity, NaN)

Changelog: [Internal]

Differential Revision: D96625901
christophpurrer added a commit to christophpurrer/react-native-macos that referenced this pull request Mar 16, 2026
Summary:

Add comprehensive unit tests for the `toString(double, char)` function in `DoubleConversions.cpp`. The tests cover:
- Zero and negative zero
- Positive and negative integers
- Fractional values
- Very small and very large values
- Scientific notation for values below 1e-6
- Infinity and NaN serialization as "0"
- Suffix character appending (including null suffix)
- Suffix behavior with special values (infinity, NaN)

Changelog: [Internal]

Differential Revision: D96625901
Summary:
Pull Request resolved: facebook#56109

Add comprehensive unit tests for the `toString(double, char)` function in `DoubleConversions.cpp`. The tests cover:
- Zero and negative zero
- Positive and negative integers
- Fractional values
- Very small and very large values
- Scientific notation for values below 1e-6
- Infinity and NaN serialization as "0"
- Suffix character appending (including null suffix)
- Suffix behavior with special values (infinity, NaN)

Changelog: [Internal]

Differential Revision: D96625901
@meta-codesync meta-codesync bot closed this in ceb1e88 Mar 16, 2026
@facebook-github-tools facebook-github-tools bot added the Merged This PR has been merged. label Mar 16, 2026
@meta-codesync
Copy link

meta-codesync bot commented Mar 16, 2026

This pull request has been merged in ceb1e88.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @christophpurrer in ceb1e88

When will my fix make it into a release? | How to file a pick request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants