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

Version Path
rhodes-3.1.1 spec/framework_spec/app/spec/core/float/exponent_spec.rb
rhodes-3.1.1.beta spec/framework_spec/app/spec/core/float/exponent_spec.rb
rhodes-3.1.0 spec/framework_spec/app/spec/core/float/exponent_spec.rb
rhodes-3.1.0.beta.5 spec/framework_spec/app/spec/core/float/exponent_spec.rb
rhodes-3.1.0.beta.4 spec/framework_spec/app/spec/core/float/exponent_spec.rb
rhodes-3.1.0.beta.3 spec/framework_spec/app/spec/core/float/exponent_spec.rb
rhodes-3.1.0.beta.2 spec/framework_spec/app/spec/core/float/exponent_spec.rb
rhodes-3.1.0.beta.1 spec/framework_spec/app/spec/core/float/exponent_spec.rb
rhodes-3.0.2 spec/framework_spec/app/spec/core/float/exponent_spec.rb
rhodes-3.0.2.beta.1 spec/framework_spec/app/spec/core/float/exponent_spec.rb
rhodes-3.0.1 spec/framework_spec/app/spec/core/float/exponent_spec.rb
rhodes-3.0.1.beta.8 spec/framework_spec/app/spec/core/float/exponent_spec.rb
rhodes-3.0.1.beta.7 spec/framework_spec/app/spec/core/float/exponent_spec.rb
rhodes-3.0.1.beta.6 spec/framework_spec/app/spec/core/float/exponent_spec.rb
rhodes-3.0.1.beta.5 spec/framework_spec/app/spec/core/float/exponent_spec.rb
rhodes-3.0.1.beta.4 spec/framework_spec/app/spec/core/float/exponent_spec.rb
rhodes-3.0.1.beta.3 spec/framework_spec/app/spec/core/float/exponent_spec.rb
rhodes-3.0.1.beta.2 spec/framework_spec/app/spec/core/float/exponent_spec.rb
rhodes-3.0.0 spec/framework_spec/app/spec/core/float/exponent_spec.rb
rhodes-3.0.0.beta.7 spec/framework_spec/app/spec/core/float/exponent_spec.rb