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

spec/definition_sec.rb: remove BigDecimal test not supported by Ruby 2.7 #68

Merged
merged 1 commit into from
Jun 9, 2020

Conversation

lucaskanashiro
Copy link
Contributor

The latest version of BigDecimal does not accept characters as input of
BigDecimal():

$ irb2.5
irb(main):001:0> require 'bigdecimal'
=> true
irb(main):002:0> BigDecimal("11sttf")
=> 0.11e2

$ irb2.7
irb(main):001:0> require 'bigdecimal'
=> true
irb(main):002:0> BigDecimal("11sttf")
Traceback (most recent call last):
5: from /usr/bin/irb2.7:23:in <main>' 4: from /usr/bin/irb2.7:23:in load'
3: from /usr/lib/ruby/gems/2.7.0/gems/irb-1.2.1/exe/irb:11:in <top (required)>' 2: from (irb):2 1: from (irb):2:in BigDecimal'
ArgumentError (invalid value for BigDecimal(): "11sttf")

The latest version of BigDecimal does not accept characters as input of
BigDecimal():

$ irb2.5
irb(main):001:0> require 'bigdecimal'
=> true
irb(main):002:0> BigDecimal("11sttf")
=> 0.11e2

$ irb2.7
irb(main):001:0> require 'bigdecimal'
=> true
irb(main):002:0> BigDecimal("11sttf")
Traceback (most recent call last):
        5: from /usr/bin/irb2.7:23:in `<main>'
        4: from /usr/bin/irb2.7:23:in `load'
        3: from /usr/lib/ruby/gems/2.7.0/gems/irb-1.2.1/exe/irb:11:in `<top (required)>'
        2: from (irb):2
        1: from (irb):2:in `BigDecimal'
ArgumentError (invalid value for BigDecimal(): "11sttf")
@Empact Empact merged commit fc0429b into Empact:master Jun 9, 2020
@lucaskanashiro lucaskanashiro deleted the ruby2.7-support branch June 9, 2020 21:28
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