Skip to content

Test Float casting of Infinity and NaN strings - #57510

Merged
byroot merged 1 commit into
rails:mainfrom
hammadxcm:test-float-special-strings
Jun 1, 2026
Merged

byroot merged 1 commit into
rails:mainfrom
hammadxcm:test-float-special-strings

Conversation

@hammadxcm

Copy link
Copy Markdown
Contributor

ActiveModel::Type::Float documents that the strings "Infinity", "-Infinity", and "NaN" cast to the corresponding float values, but no test exercised these branches.

This adds coverage for casting those special strings. No production code changes — test-only.

ActiveModel::Type::Float documents that the strings "Infinity",
"-Infinity", and "NaN" cast to the corresponding float values, but
no test exercised these branches.

Add coverage for casting those special strings.
@byroot
byroot merged commit 9e70f06 into rails:main Jun 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants