aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_float.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-04 13:55:24 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-04 13:55:24 +0000
commit0562c4f76d89cfc9d7c95d077fa62652bbe54664 (patch)
treeabdd3147214bf536da428ba87319aec50c6ef594 /test/ruby/test_float.rb
parentde1f3c92e701cdb2752f5079107ad65512e1b43b (diff)
downloadruby-0562c4f76d89cfc9d7c95d077fa62652bbe54664.tar.gz
* test/ruby: get rid of warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_float.rb')
-rw-r--r--test/ruby/test_float.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/ruby/test_float.rb b/test/ruby/test_float.rb
index b8b4da6f43..3ee0a23a63 100644
--- a/test/ruby/test_float.rb
+++ b/test/ruby/test_float.rb
@@ -248,14 +248,14 @@ class TestFloat < Test::Unit::TestCase
def test_modulo3
bug6048 = '[ruby-core:42726]'
- assert_equal(4.2, 4.2.send(:%, Float::INFINITY))
- assert_equal(4.2, 4.2 % Float::INFINITY)
+ assert_equal(4.2, 4.2.send(:%, Float::INFINITY), bug6048)
+ assert_equal(4.2, 4.2 % Float::INFINITY, bug6048)
assert_is_minus_zero(-0.0 % 4.2)
assert_is_minus_zero(-0.0.send :%, 4.2)
- assert_raise(ZeroDivisionError) { 4.2.send(:%, 0.0) }
- assert_raise(ZeroDivisionError) { 4.2 % 0.0 }
- assert_raise(ZeroDivisionError) { 42.send(:%, 0) }
- assert_raise(ZeroDivisionError) { 42 % 0 }
+ assert_raise(ZeroDivisionError, bug6048) { 4.2.send(:%, 0.0) }
+ assert_raise(ZeroDivisionError, bug6048) { 4.2 % 0.0 }
+ assert_raise(ZeroDivisionError, bug6048) { 42.send(:%, 0) }
+ assert_raise(ZeroDivisionError, bug6048) { 42 % 0 }
end
def test_divmod2