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
2019-06-27 21:02:36 +02:00

10 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