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