Sha256: e1f5f68f53258deee2877bfce226cdde27343d713104ffa32d7b61d2db4ddc6e
Contents?: true
Size: 392 Bytes
Versions: 83
Compression:
Stored size: 392 Bytes
Contents
require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper' describe "Float#**" do it "returns self raise to the other power" do (2.3 ** 3).should be_close(12.167,TOLERANCE) (5.2 ** -1).should be_close(0.192307692307692,TOLERANCE) (9.5 ** 0.5).should be_close(3.08220700148449, TOLERANCE) (9.5 ** 0xffffffff).to_s.should == 'Infinity' end end
Version data entries
83 entries across 83 versions & 1 rubygems