Sha256: 79e2cb2948829dea037a242bf240794db480251e78bcc7bfc6aa3f6ff1a3ec32

Contents?: true

Size: 223 Bytes

Versions: 70

Compression:

Stored size: 223 Bytes

Contents

describe "Numeric#eql?" do
  it "returns true if self has the same value as other" do
    (1.eql? 1).should == true
    (9.eql? 5).should == false

    (9.eql? 9.0).should == true
    (9.eql? 9.01).should == false
  end
end

Version data entries

70 entries across 70 versions & 3 rubygems

Version Path
opal-0.3.37 spec/core/numeric/eql_spec.rb
opal-0.3.36 spec/core/numeric/eql_spec.rb
opal-0.3.35 spec/core/numeric/eql_spec.rb
opal-0.3.34 spec/core/numeric/eql_spec.rb
opal-0.3.33 spec/core/numeric/eql_spec.rb
opal-0.3.32 spec/core/numeric/eql_spec.rb
opal-0.3.31 spec/core/numeric/eql_spec.rb
opal-0.3.30 spec/core/numeric/eql_spec.rb
opal-0.3.29 spec/core/numeric/eql_spec.rb
opal-0.3.28 spec/core/numeric/eql_spec.rb