blob: 1d66348a5ac0285096366004fb49d0b21878dbeb (
plain)
1
2
3
4
5
6
7
8
9
|
require File.expand_path('../../../spec_helper', __FILE__)
describe "Fixnum#to_f" do
it "returns self converted to a Float" do
0.to_f.should == 0.0
-500.to_f.should == -500.0
9_641_278.to_f.should == 9641278.0
end
end
|