diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-21 06:16:11 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-21 06:16:11 +0000 |
commit | ed5723408dcb64467a6bd19bffe5768921407d45 (patch) | |
tree | ddb2c6a7c07ec285a9b89d0833c2f6d0bc8e398b /test/ruby | |
parent | f55f5a0d0ff6ad1868da85bb3f3ab15f1d97233e (diff) | |
download | ruby-ed5723408dcb64467a6bd19bffe5768921407d45.tar.gz |
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
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_array.rb | 4 | ||||
-rw-r--r-- | test/ruby/test_enum.rb | 4 | ||||
-rw-r--r-- | test/ruby/test_range.rb | 11 |
3 files changed, 0 insertions, 19 deletions
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) |