diff options
Diffstat (limited to 'spec/ruby/core/float/to_f_spec.rb')
| -rw-r--r-- | spec/ruby/core/float/to_f_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/ruby/core/float/to_f_spec.rb b/spec/ruby/core/float/to_f_spec.rb new file mode 100644 index 0000000000..6677556cd9 --- /dev/null +++ b/spec/ruby/core/float/to_f_spec.rb @@ -0,0 +1,9 @@ +require_relative '../../spec_helper' + +describe "Float#to_f" do + it "returns self" do + -500.3.to_f.should == -500.3 + 267.51.to_f.should == 267.51 + 1.1412.to_f.should == 1.1412 + end +end |
