diff options
author | headius <headius@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-22 23:22:56 +0000 |
---|---|---|
committer | headius <headius@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-22 23:22:56 +0000 |
commit | 415ddc9bdb25aa545be01d3b8c1e892f16203095 (patch) | |
tree | 08507490d491ab6f78d74362d54fc2bcd56b70d9 /test | |
parent | 1c9769e0cc1eb6c9ab0be4ff3d5edcd27623dc73 (diff) | |
download | ruby-415ddc9bdb25aa545be01d3b8c1e892f16203095.tar.gz |
* test/ruby/test_math.rb: override tests must always put to_f back
Conflicts:
test/ruby/test_math.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_math.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_math.rb b/test/ruby/test_math.rb index 72ed987719..551d13e31d 100644 --- a/test/ruby/test_math.rb +++ b/test/ruby/test_math.rb @@ -288,7 +288,7 @@ class TestMath < Test::Unit::TestCase check(Math.cos((0 + 1)._to_f), Math.cos(0)) check(Math.exp((0 + 1)._to_f), Math.exp(0)) check(Math.log((0 + 1)._to_f), Math.log(0)) - + ensure Fixnum.class_eval { undef to_f; alias to_f _to_f; undef _to_f } end @@ -306,7 +306,7 @@ class TestMath < Test::Unit::TestCase check(Math.cos((1 << 62 << 1)._to_f), Math.cos(1 << 62)) check(Math.log((1 << 62 << 1)._to_f), Math.log(1 << 62)) - + ensure Bignum.class_eval { undef to_f; alias to_f _to_f; undef _to_f } end @@ -325,7 +325,7 @@ class TestMath < Test::Unit::TestCase check(Math.cos((0r + 1)._to_f), Math.cos(0r)) check(Math.exp((0r + 1)._to_f), Math.exp(0r)) check(Math.log((0r + 1)._to_f), Math.log(0r)) - + ensure Rational.class_eval { undef to_f; alias to_f _to_f; undef _to_f } end end |