From ed5723408dcb64467a6bd19bffe5768921407d45 Mon Sep 17 00:00:00 2001 From: hsbt Date: Fri, 21 Apr 2017 06:16:11 +0000 Subject: Removed mathn.rb from stdlib. It's deprecated from Ruby 2.2. [Feature #10169][[ruby-core:64553]] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_array.rb | 4 ---- test/ruby/test_enum.rb | 4 ---- test/ruby/test_range.rb | 11 ----------- 3 files changed, 19 deletions(-) (limited to 'test/ruby') diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb index fbc0790f0f..d797ee8164 100644 --- a/test/ruby/test_array.rb +++ b/test/ruby/test_array.rb @@ -2859,10 +2859,6 @@ class TestArray < Test::Unit::TestCase assert_raise(TypeError) {[0].sum("")} assert_raise(TypeError) {[1].sum("")} - - assert_separately(%w[-rmathn], <<-EOS, ignore_stderr: true) - assert_equal(6, [1r, 2, 3r].sum) - EOS end private diff --git a/test/ruby/test_enum.rb b/test/ruby/test_enum.rb index 27d406680a..f44d025c09 100644 --- a/test/ruby/test_enum.rb +++ b/test/ruby/test_enum.rb @@ -907,10 +907,6 @@ class TestEnumerable < Test::Unit::TestCase assert_equal("abc", ["a", "b", "c"].each.sum("")) assert_equal([1, [2], 3], [[1], [[2]], [3]].each.sum([])) - - assert_separately(%w[-rmathn], <<-EOS, ignore_stderr: true) - assert_equal(6, [1r, 2, 3r].each.sum) - EOS end def test_hash_sum diff --git a/test/ruby/test_range.rb b/test/ruby/test_range.rb index 1ce3f0663a..3743e9dda6 100644 --- a/test/ruby/test_range.rb +++ b/test/ruby/test_range.rb @@ -640,17 +640,6 @@ class TestRange < Test::Unit::TestCase assert_raise(TypeError) { ("a".."z").bsearch {} } end - def test_bsearch_with_mathn - assert_separately ['-r', 'mathn'], %q{ - msg = '[ruby-core:25740]' - answer = (1..(1 << 100)).bsearch{|x| - assert_predicate(x, :integer?, msg) - x >= 42 - } - assert_equal(42, answer, msg) - }, ignore_stderr: true - end - def test_each_no_blockarg a = "a" def a.upto(x, e, &b) -- cgit v1.2.3