Skip to content

Fix BigDecimal#to_s for edge case#7778

Merged
enebo merged 1 commit intojruby:masterfrom
k77ch7:ruby-3.1-fix-bigdecimal-to_s
Apr 29, 2023
Merged

Fix BigDecimal#to_s for edge case#7778
enebo merged 1 commit intojruby:masterfrom
k77ch7:ruby-3.1-fix-bigdecimal-to_s

Conversation

@k77ch7
Copy link
Contributor

@k77ch7 k77ch7 commented Apr 29, 2023

When a BigDecimal instance is special string case, #to_s method should return string with us ascii encoding. The following test will pass.

  • test_to_special_string in test/mri/bigdecimal/test_bigdecimal.rb

When a BigDecimal instance is special string case, #to_s method should return string with us ascii encoding.
The following test will pass.
 * test_to_special_string in test/mri/bigdecimal/test_bigdecimal.rb
@enebo enebo added this to the JRuby 9.4.3.0 milestone Apr 29, 2023
@enebo enebo merged commit c2a3f70 into jruby:master Apr 29, 2023
@enebo
Copy link
Member

enebo commented Apr 29, 2023

@k77ch7 excellent work on hitting these corner cases

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