Sha256: 655e63d3cb208b05c3dce64171ef53d96391e31bd9b3ba0099234f46f145f146

Contents?: true

Size: 154 Bytes

Versions: 70

Compression:

Stored size: 154 Bytes

Contents

describe "Numeric#to_i" do
  it "returns self as an integer" do
    10.to_i.should == 10
    (-15).to_i.should == -15
    3.142.to_i.should == 3
  end
end

Version data entries

70 entries across 70 versions & 3 rubygems

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