Skip to content

Run the RFC 8785 number tests on JRuby 10.1.3 and later - #1128

Merged
byroot merged 1 commit into
ruby:masterfrom
sferik:jruby-rfc8785-float-tests
Nov 5, 2026
Merged

byroot merged 1 commit into
ruby:masterfrom
sferik:jruby-rfc8785-float-tests

Conversation

@sferik

@sferik sferik commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

The RFC 8785 number formatter uses Float#to_s, so the 26 test_rfc8785_number_* tests were skipped on every engine but CRuby.

JRuby 10.1.3 gives the shortest round-trip digits in Float#to_s (jruby/jruby#9916), and all of these tests pass there. Older JRuby versions print the smallest subnormal as 4.9e-324 instead of 5e-324, so they still skip them.

The RFC 8785 number formatter uses Float#to_s, so these tests were
skipped on every engine but CRuby. JRuby 10.1.3 gives the shortest
round-trip digits in Float#to_s
(jruby/jruby#9916), and all 26 tests pass
there. Older JRuby versions print the smallest subnormal as 4.9e-324,
so they still skip them.

Part of ruby#1123
@byroot
byroot merged commit 8bda054 into ruby:master Nov 5, 2026
42 checks passed
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