Sha256: 88e1e06e8e4be2bc48048ec1e2991bbdf8bb52582be8878d56c37dff701459a0

Contents?: true

Size: 179 Bytes

Versions: 70

Compression:

Stored size: 179 Bytes

Contents

describe "Numeric#-" do
  it "returns self minus the given Integer" do
    (5 - 10).should == -5
    (9237212 - 5_280).should == 9231932

    (781 - 0.5).should == 780.5
  end
end

Version data entries

70 entries across 70 versions & 3 rubygems

Version Path
opal-0.7.0.beta1 spec/opal/core/numeric/minus_spec.rb
opal-0.6.2 spec/opal/core/numeric/minus_spec.rb
opal-0.6.1 spec/opal/core/numeric/minus_spec.rb
opal-0.6.0 spec/opal/core/numeric/minus_spec.rb
opal-0.5.5 spec/opal/core/numeric/minus_spec.rb
opal-0.5.4 spec/corelib/numeric/minus_spec.rb
opal-0.5.2 spec/corelib/numeric/minus_spec.rb
opal-0.5.0 spec/corelib/numeric/minus_spec.rb
opal-0.4.4 spec/rubyspec/core/numeric/minus_spec.rb
opal-0.4.3 spec/rubyspec/core/numeric/minus_spec.rb
opal-0.4.2 spec/rubyspec/core/numeric/minus_spec.rb
opal-0.4.1 spec/rubyspec/core/numeric/minus_spec.rb
opal-0.4.0 spec/rubyspec/core/numeric/minus_spec.rb
opal-0.3.44 spec/rubyspec/core/numeric/minus_spec.rb
opal-0.3.43 spec/rubyspec/core/numeric/minus_spec.rb
opal-0.3.42 spec/core/numeric/minus_spec.rb
opal-0.3.41 spec/core/numeric/minus_spec.rb
opal-0.3.40 spec/core/numeric/minus_spec.rb
opal-0.3.39 spec/core/numeric/minus_spec.rb
opal-0.3.38 spec/core/numeric/minus_spec.rb