mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@032ee74
This commit is contained in:
parent
f646d20aae
commit
5aaa75e7c1
263 changed files with 921 additions and 921 deletions
|
@ -50,13 +50,13 @@ describe "BigDecimal#sub" do
|
|||
end
|
||||
|
||||
it "returns NaN if NaN is involved" do
|
||||
@one.sub(@nan, 1).nan?.should == true
|
||||
@nan.sub(@one, 1).nan?.should == true
|
||||
@one.sub(@nan, 1).should.nan?
|
||||
@nan.sub(@one, 1).should.nan?
|
||||
end
|
||||
|
||||
it "returns NaN if both values are infinite with the same signs" do
|
||||
@infinity.sub(@infinity, 1).nan?.should == true
|
||||
@infinity_minus.sub(@infinity_minus, 1).nan?.should == true
|
||||
@infinity.sub(@infinity, 1).should.nan?
|
||||
@infinity_minus.sub(@infinity_minus, 1).should.nan?
|
||||
end
|
||||
|
||||
it "returns Infinity or -Infinity if these are involved" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue