Sha256: 71a2d1f4b25ec34f9bec7cc47f2368c1bbd6911ef02d3cd230c5a49019c0d831
Contents?: true
Size: 313 Bytes
Versions: 52
Compression:
Stored size: 313 Bytes
Contents
require File.expand_path('../../../spec_helper', __FILE__) require 'rational' describe :rational_to_r, :shared => true do conflicts_with :Prime do it "returns self" do a = Rational(3, 4) a.to_r.should equal(a) a = Rational(bignum_value, 4) a.to_r.should equal(a) end end end
Version data entries
52 entries across 52 versions & 2 rubygems