mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
11 lines
244 B
Ruby
11 lines
244 B
Ruby
|
require_relative '../../spec_helper'
|
||
|
require 'bigdecimal'
|
||
|
require 'bigdecimal/util'
|
||
|
|
||
|
describe "Float#to_d" do
|
||
|
it "returns appropriate BigDecimal zero for signed zero" do
|
||
|
-0.0.to_d.sign.should == -1
|
||
|
0.0.to_d.sign.should == 1
|
||
|
end
|
||
|
end
|