From ba15b1464770695b1973602d5234ba084d182bb4 Mon Sep 17 00:00:00 2001 From: Douglas Campos Date: Wed, 24 Nov 2010 22:01:04 -0200 Subject: [PATCH] added edge cases from jruby-5208 Signed-off-by: Douglas Campos --- core/string/to_f_spec.rb | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/core/string/to_f_spec.rb b/core/string/to_f_spec.rb index 5d2fb4c..3cea151 100644 --- a/core/string/to_f_spec.rb +++ b/core/string/to_f_spec.rb @@ -12,6 +12,8 @@ describe "String#to_f" do ".5".to_f.should == 0.5 ".5e1".to_f.should == 5.0 + "5e".to_f.should == 5.0 + "5E".to_f.should == 5.0 end it "treats special float value strings as characters" do -- 1.7.3.1