Sha256: b106987ade7d4f13688c57e952da55ada11bfe725db01bf11b65b962c98688cd

Contents?: true

Size: 307 Bytes

Versions: 83

Compression:

Stored size: 307 Bytes

Contents

require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper'

describe "Float#finite?" do
  it "returns true if a valid IEEE floating-point number" do
    (1.5**0xffffffff).finite?.should == false
    3.14159.finite?.should == true
    (-1.0/0.0).finite?.should == false
  end
end

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
rhodes-1.4.2 spec/framework_spec/app/spec/core/float/finite_spec.rb
rhodes-1.4.1 spec/framework_spec/app/spec/core/float/finite_spec.rb
rhodes-1.4.0 spec/framework_spec/app/spec/core/float/finite_spec.rb