Sha256: 1123b997eb0d7db56640a325e9998b00d19c4c65ce1ea02040d3342b1f851ff3
Contents?: true
Size: 329 Bytes
Versions: 4
Compression:
Stored size: 329 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper.rb' MPFR.set_default_prec(90) describe MPFR, 'when converting instance of other class' do it "should be transformed to float" do num = GenerateNumber.float(1000, 100) + [0.0] num.each do |a| b = MPFR.new(a).get_d(MPFR::RNDZ) a.should == b end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ruby-mpfr-0.0.7 | spec/mpfr/conversion_spec.rb |
ruby-mpfr-0.0.6 | spec/mpfr/conversion_spec.rb |
ruby-mpfr-0.0.5 | spec/mpfr/conversion_spec.rb |
ruby-mpfr-0.0.4 | spec/mpfr/conversion_spec.rb |