BigDecimal changed #remainder's spec

This test is no longer passing:
```
  1)
  BigDecimal#remainder returns NaN if Infinity is involved FAILED
  Expected Infinity.nan?
  to be truthy but was false
  /home/runner/work/ruby/ruby/src/spec/ruby/library/bigdecimal/remainder_spec.rb:58:in `block (2 levels) in <top (required)>'
  /home/runner/work/ruby/ruby/src/spec/ruby/library/bigdecimal/remainder_spec.rb:4:in `<top (required)>'
```

https://github.com/ruby/bigdecimal/pull/243
This commit is contained in:
Takashi Kokubun 2023-02-17 10:53:07 -08:00
parent c3bae033eb
commit 0d8ef62fc2

View File

@ -54,6 +54,7 @@ describe "BigDecimal#remainder" do
@nan.remainder(@infinity).should.nan?
end
ruby_version_is ""..."3.3" do
it "returns NaN if Infinity is involved" do
@infinity.remainder(@infinity).should.nan?
@infinity.remainder(@one).should.nan?
@ -70,6 +71,7 @@ describe "BigDecimal#remainder" do
@infinity.remainder(@infinity_minus).should.nan?
@infinity_minus.remainder(@infinity).should.nan?
end
end
it "coerces arguments to BigDecimal if possible" do
@three.remainder(2).should == @one