Sha256: c8bb62557b94da96ed55f31e349224956158714cc9dfd72e0b21919e5f72497f

Contents?: true

Size: 179 Bytes

Versions: 70

Compression:

Stored size: 179 Bytes

Contents

describe "Numeric#+" do
  it "returns self plus the given Integer" do
    (491 + 2).should == 493
    (90210 + 10).should == 90220

    (1001 + 5.219).should == 1006.219
  end
end

Version data entries

70 entries across 70 versions & 3 rubygems

Version Path
opal-0.9.0.rc1 spec/opal/core/numeric/plus_spec.rb
opal-0.9.0.beta2 spec/opal/core/numeric/plus_spec.rb
opal-0.9.0.beta1 spec/opal/core/numeric/plus_spec.rb
opal-0.8.1 spec/opal/core/numeric/plus_spec.rb
opal-0.8.1.rc1 spec/opal/core/numeric/plus_spec.rb
opal-wedge-0.9.0.dev spec/opal/core/numeric/plus_spec.rb
opal-0.8.0 spec/opal/core/numeric/plus_spec.rb
opal-0.8.0.rc3 spec/opal/core/numeric/plus_spec.rb
opal-0.8.0.rc2 spec/opal/core/numeric/plus_spec.rb
opal-0.8.0.rc1 spec/opal/core/numeric/plus_spec.rb
opal-0.8.0.beta1 spec/opal/core/numeric/plus_spec.rb
opal-0.7.2 spec/opal/core/numeric/plus_spec.rb
opal-0.7.1 spec/opal/core/numeric/plus_spec.rb
opal-0.7.0 spec/opal/core/numeric/plus_spec.rb
opal-0.7.0.rc1 spec/opal/core/numeric/plus_spec.rb
opal-0.7.0.beta3 spec/opal/core/numeric/plus_spec.rb
opal-0.6.3 spec/opal/core/numeric/plus_spec.rb
opal-0.7.0.beta2 spec/opal/core/numeric/plus_spec.rb
opal-cj-0.7.0.beta2 spec/opal/core/numeric/plus_spec.rb
opal-cj-0.7.0.beta1 spec/opal/core/numeric/plus_spec.rb