1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/library/bigdecimal/to_d_spec.rb

11 lines
244 B
Ruby
Raw Normal View History

2019-05-28 16:41:48 -04:00
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