We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b82ad36 commit 175770bCopy full SHA for 175770b
spec/ruby/library/bigdecimal/BigDecimal_spec.rb
@@ -98,7 +98,11 @@
98
BigDecimal("invalid", exception: false).should be_nil
99
BigDecimal("0invalid", exception: false).should be_nil
100
BigDecimal("invalid0", exception: false).should be_nil
101
- BigDecimal("0.", exception: false).should be_nil
+ if BigDecimal::VERSION >= "3.1.9"
102
+ BigDecimal("0.", exception: false).to_i.should == 0
103
+ else
104
+ BigDecimal("0.", exception: false).should be_nil
105
+ end
106
end
107
108
0 commit comments