Sha256: bedd6afef16d51fd6f78daf23d2df2dce3ebac07b06a498702c772aac31d9c7d

Contents?: true

Size: 344 Bytes

Versions: 95

Compression:

Stored size: 344 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

describe "Float" do
  it "should be able to round to the nearest integer" do
    10.95.round_to(1).should == 11
  end
  it "should be able to get the ceiling" do
    10.54.ceil_to(1).should == 10.6
  end
  it "should be able to get the floor" do
    10.14.floor_to(1).should == 10.1
  end
end

Version data entries

95 entries across 95 versions & 3 rubygems

Version Path
auser-poolparty-0.2.15 spec/poolparty/core/float.rb
auser-poolparty-0.2.16 spec/poolparty/core/float.rb
auser-poolparty-0.2.20 spec/poolparty/core/float.rb
auser-poolparty-0.2.21 spec/poolparty/core/float.rb
auser-poolparty-0.2.22 spec/poolparty/core/float.rb
auser-poolparty-0.2.23 spec/poolparty/core/float.rb
auser-poolparty-0.2.24 spec/poolparty/core/float.rb
auser-poolparty-0.2.25 spec/poolparty/core/float.rb
auser-poolparty-0.2.26 spec/poolparty/core/float.rb
auser-poolparty-0.2.3 spec/poolparty/core/float.rb
auser-poolparty-0.2.35 spec/poolparty/core/float.rb
auser-poolparty-0.2.36 spec/poolparty/core/float.rb
auser-poolparty-0.2.37 spec/poolparty/core/float.rb
auser-poolparty-0.2.38 spec/poolparty/core/float.rb
auser-poolparty-0.2.39 spec/poolparty/core/float.rb
auser-poolparty-0.2.4 spec/poolparty/core/float.rb
auser-poolparty-0.2.40 spec/poolparty/core/float.rb
auser-poolparty-0.2.41 spec/poolparty/core/float.rb
auser-poolparty-0.2.42 spec/poolparty/core/float.rb
auser-poolparty-0.2.44 spec/poolparty/core/float.rb