summaryrefslogtreecommitdiff
path: root/spec/rubyspec/core/float/to_f_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rubyspec/core/float/to_f_spec.rb')
-rw-r--r--spec/rubyspec/core/float/to_f_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/rubyspec/core/float/to_f_spec.rb b/spec/rubyspec/core/float/to_f_spec.rb
new file mode 100644
index 0000000000..02666ae7d7
--- /dev/null
+++ b/spec/rubyspec/core/float/to_f_spec.rb
@@ -0,0 +1,9 @@
+require File.expand_path('../../../spec_helper', __FILE__)
+
+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