Sha256: d12d944786f09bc570d2a752df3effda1b518f31cface449fc2c96606eaa871d

Contents?: true

Size: 160 Bytes

Versions: 70

Compression:

Stored size: 160 Bytes

Contents

describe "Numeric#pred" do
  it "returns the Integer equal to self - 1" do
    0.pred.should == -1
    (-1).pred.should == -2
    20.pred.should == 19
  end
end

Version data entries

70 entries across 70 versions & 3 rubygems

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