aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-01 08:43:56 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-01 08:43:56 +0000
commit548932ce976dca3379dbf0d3fcd5a06bb75bcba3 (patch)
tree93fe812f1ca65a0d3f35ad59e88d5b7ab358470a /test
parentafd64aafd1b4def1cb3f9109b470e02b09314c80 (diff)
downloadruby-548932ce976dca3379dbf0d3fcd5a06bb75bcba3.tar.gz
Remove hexadecimal-floating-point tests for String#to_f.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_string.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb
index c5b86fa177..eef242bc7c 100644
--- a/test/ruby/test_string.rb
+++ b/test/ruby/test_string.rb
@@ -1396,16 +1396,6 @@ class TestString < Test::Unit::TestCase
assert_equal(0.0, S("degrees 100.0").to_f)
assert_equal([ 0.0].pack('G'), [S(" 0.0").to_f].pack('G'))
assert_equal([-0.0].pack('G'), [S("-0.0").to_f].pack('G'))
- assert_equal([ 0.0].pack('G'), [S(" 0x0p+0").to_f].pack('G'))
- assert_equal([-0.0].pack('G'), [S("-0x0p+0").to_f].pack('G'))
- assert_equal(255.0, S("0Xff").to_f)
- assert_equal(255.5, S("0Xff.8").to_f)
- assert_equal(1.0, S("0X1.P+0").to_f)
- assert_equal(1024.0, S("0x1p10").to_f)
- assert_equal(1024.0, S("0x1p+10").to_f)
- assert_equal(0.0009765625, S("0x1p-10").to_f)
- assert_equal(2.6881171418161356e+43, S("0x1.3494a9b171bf5p+144").to_f)
- assert_equal(-3.720075976020836e-44, S("-0x1.a8c1f14e2af5dp-145").to_f)
end
def test_to_i