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

[Backport 1.16] fix: number() to return null if the given string is invalid #899

Merged
merged 2 commits into from
Aug 23, 2024

Conversation

saig0
Copy link
Member

@saig0 saig0 commented Aug 23, 2024

Description

Backport of #892 for 1.16.

Additionally to the changes in the original, this PR contains the migration of the test class to the new test style. This migration was necessary to cherry-pick the commit with the new test cases.

Related issues

closes #731

saig0 added 2 commits August 23, 2024 09:22
Add a test case to verify that the function number() returns null if the given string is not a number.

(cherry picked from commit b2afedd)
Correct the function number() to return null if the given string is not a number, instead of throwing an exception.

(cherry picked from commit cabb5f2)
@saig0 saig0 requested a review from nicpuppa August 23, 2024 07:35
Copy link
Contributor

@nicpuppa nicpuppa left a comment

Choose a reason for hiding this comment

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

❤️

@saig0 saig0 merged commit 7408982 into 1.16 Aug 23, 2024
3 checks passed
@saig0 saig0 deleted the 731-backport-1.16 branch August 23, 2024 07:55
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.

2 participants