Sha256: 396679ffb6a3f7822a721d918fd34d830dc1258b854ba69c299e1163dbe10696
Contents?: true
Size: 452 Bytes
Versions: 52
Compression:
Stored size: 452 Bytes
Contents
require File.expand_path('../../../spec_helper', __FILE__) require 'rational' describe :rational_abs, :shared => true do it "returns self's absolute value" do Rational(3, 4).send(@method).should == Rational(3, 4) Rational(-3, 4).send(@method).should == Rational(3, 4) Rational(3, -4).send(@method).should == Rational(3, 4) Rational(bignum_value, -bignum_value).send(@method).should == Rational(bignum_value, bignum_value) end end
Version data entries
52 entries across 52 versions & 2 rubygems