Project

General

Profile

Bug #14121 ยป test-class_renames.patch

Patches used in GitHub PR 1763 - MSP-Greg (Greg L), 11/20/2017 05:00 PM

View differences:

test/-ext-/array/test_resize.rb
2 2
require 'test/unit'
3 3
require '-test-/array/resize'
4 4

  
5
class TestArray < Test::Unit::TestCase
5
class Test_Array < Test::Unit::TestCase
6 6
  class TestResize < Test::Unit::TestCase
7 7
    def test_expand
8 8
      feature = '[ruby-dev:42912]'
test/-ext-/bignum/test_big2str.rb
2 2
require 'test/unit'
3 3
require "-test-/bignum"
4 4

  
5
class TestBignum < Test::Unit::TestCase
5
class Test_Bignum < Test::Unit::TestCase
6 6
  class TestBig2str < Test::Unit::TestCase
7 7

  
8 8
    SIZEOF_BDIGIT = Integer::SIZEOF_BDIGIT
test/-ext-/bignum/test_bigzero.rb
2 2
require 'test/unit'
3 3
require "-test-/bignum"
4 4

  
5
class TestBignum < Test::Unit::TestCase
5
class Test_Bignum < Test::Unit::TestCase
6 6
  class TestBigZero < Test::Unit::TestCase
7 7
    def test_equal_0
8 8
      bug8204 = '[ruby-core:53893] [Bug #8204]'
test/-ext-/bignum/test_div.rb
2 2
require 'test/unit'
3 3
require "-test-/bignum"
4 4

  
5
class TestBignum < Test::Unit::TestCase
5
class Test_Bignum < Test::Unit::TestCase
6 6
  class TestDiv < Test::Unit::TestCase
7 7

  
8 8
    SIZEOF_BDIGIT = Integer::SIZEOF_BDIGIT
test/-ext-/bignum/test_mul.rb
2 2
require 'test/unit'
3 3
require "-test-/bignum"
4 4

  
5
class TestBignum < Test::Unit::TestCase
5
class Test_Bignum < Test::Unit::TestCase
6 6
  class TestMul < Test::Unit::TestCase
7 7

  
8 8
    SIZEOF_BDIGIT = Integer::SIZEOF_BDIGIT
test/-ext-/bignum/test_pack.rb
4 4
require 'test/unit'
5 5
require "-test-/bignum"
6 6

  
7
class TestBignum < Test::Unit::TestCase
7
class Test_Bignum < Test::Unit::TestCase
8 8
  class TestPack < Test::Unit::TestCase
9 9

  
10 10
    MSWORD_FIRST = Integer::INTEGER_PACK_MSWORD_FIRST
test/-ext-/bignum/test_str2big.rb
2 2
require 'test/unit'
3 3
require "-test-/bignum"
4 4

  
5
class TestBignum < Test::Unit::TestCase
5
class Test_Bignum < Test::Unit::TestCase
6 6
  class TestStr2big < Test::Unit::TestCase
7 7

  
8 8
    SIZEOF_BDIGIT = Integer::SIZEOF_BDIGIT
test/-ext-/exception/test_data_error.rb
2 2
require 'test/unit'
3 3

  
4 4
module Bug
5
  class TestException < Test::Unit::TestCase
5
  class Test_ExceptionDE < Test::Unit::TestCase
6 6
    def test_cleanup_data_error
7 7
      bug9167 = '[ruby-core:58643] [Bug #9167]'
8 8
      assert_normal_exit(<<-'end;', bug9167) # do
test/-ext-/exception/test_enc_raise.rb
3 3
require '-test-/exception'
4 4

  
5 5
module Bug
6
  class TestException < Test::Unit::TestCase
6
  class Test_ExceptionER < Test::Unit::TestCase
7 7
    def test_enc_raise
8 8
      feature5650 = '[ruby-core:41160]'
9 9
      Encoding.list.each do |enc|
test/-ext-/exception/test_ensured.rb
5 5
  class Bug7802 < RuntimeError
6 6
  end
7 7

  
8
  class TestException < Test::Unit::TestCase
8
  class Test_ExceptionE < Test::Unit::TestCase
9 9
    def test_ensured
10 10
      assert_separately([], <<-'end;') # do
11 11

  
test/-ext-/exception/test_exception_at_throwing.rb
2 2
require 'test/unit'
3 3

  
4 4
module Bug
5
  class TestException < Test::Unit::TestCase
5
  class Test_ExceptionAT < Test::Unit::TestCase
6 6
    def test_exception_at_throwing
7 7
      assert_separately(%w[-r-test-/exception], "#{<<-"begin;"}\n#{<<-"end;"}")
8 8
      begin;
test/-ext-/hash/test_delete.rb
2 2
require 'test/unit'
3 3
require '-test-/hash'
4 4

  
5
class TestHash < Test::Unit::TestCase
5
class Test_Hash < Test::Unit::TestCase
6 6
  class TestDelete < Test::Unit::TestCase
7 7
    def test_delete
8 8
      hash = Bug::Hash.new
test/-ext-/integer/test_integer.rb
2 2
require 'test/unit'
3 3
require '-test-/integer'
4 4

  
5
class TestInteger < Test::Unit::TestCase
5
class Test_Integer < Test::Unit::TestCase
6 6
  FIXNUM_MIN = RbConfig::LIMITS['FIXNUM_MIN']
7 7
  FIXNUM_MAX = RbConfig::LIMITS['FIXNUM_MAX']
8 8

  
test/-ext-/integer/test_my_integer.rb
2 2
require 'test/unit'
3 3
require "-test-/integer"
4 4

  
5
class TestIntegerExt < Test::Unit::TestCase
5
class Test_MyInteger < Test::Unit::TestCase
6 6
  def test_my_integer_to_f
7 7
    assert_raise(NotImplementedError) do
8 8
      Bug::Integer::MyInteger.new.to_f
test/-ext-/method/test_arity.rb
2 2
require '-test-/method'
3 3
require 'test/unit'
4 4

  
5
class TestMethod < Test::Unit::TestCase
5
class Test_Method < Test::Unit::TestCase
6 6
  class TestArity < Test::Unit::TestCase
7 7
    class A
8 8
      def foo0()
test/-ext-/proc/test_bmethod.rb
2 2
require 'test/unit'
3 3
require '-test-/proc'
4 4

  
5
class TestProc < Test::Unit::TestCase
5
class Test_Proc < Test::Unit::TestCase
6 6
  class TestBMethod < Test::Unit::TestCase
7 7
  end
8 8
end
9 9

  
10
class TestProc::TestBMethod
10
class Test_Proc::TestBMethod
11 11
  class Base
12 12
    def foo(*a)
13 13
      a
test/-ext-/test_notimplement.rb
1 1
# frozen_string_literal: false
2 2
require '-test-/notimplement'
3 3

  
4
class TestNotImplement < Test::Unit::TestCase
4
class Test_NotImplement < Test::Unit::TestCase
5 5
  def test_funcall_notimplement
6 6
    bug3662 = '[ruby-dev:41953]'
7 7
    assert_raise(NotImplementedError, bug3662) {
test/erb/test_erb.rb
2 2
# frozen_string_literal: false
3 3
require 'test/unit'
4 4
require 'erb'
5
require 'stringio'
5 6

  
6 7
class TestERB < Test::Unit::TestCase
7 8
  class MyError < RuntimeError ; end
......
235 236
    $stdout = orig
236 237
    out.rewind
237 238
    assert_equal('9', out.read)
239
    return unless num               # to remove warning
238 240
  end
239 241

  
240 242
  class Foo; end
test/erb/test_erb_m17n.rb
3 3
require 'test/unit'
4 4
require 'erb'
5 5

  
6
class TestERB < Test::Unit::TestCase
6
class TestERBEncoding < Test::Unit::TestCase
7 7
  def test_result_encoding
8 8
    erb = ERB.new("hello")
9 9
    assert_equal __ENCODING__, erb.result.encoding
test/fileutils/test_dryrun.rb
8 8
class TestFileUtilsDryRun < Test::Unit::TestCase
9 9

  
10 10
  include FileUtils::DryRun
11
  include TestFileUtils::Visibility
11
  include TestFileUtilsInc::Visibility
12 12

  
13 13
  def setup
14 14
    super
test/fileutils/test_nowrite.rb
8 8
class TestFileUtilsNoWrite < Test::Unit::TestCase
9 9

  
10 10
  include FileUtils::NoWrite
11
  include TestFileUtils::Visibility
11
  include TestFileUtilsInc::Visibility
12 12

  
13 13
  def setup
14 14
    super
test/fileutils/test_verbose.rb
8 8
class TestFileUtilsVerbose < Test::Unit::TestCase
9 9

  
10 10
  include FileUtils::Verbose
11
  include TestFileUtils::Visibility
11
  include TestFileUtilsInc::Visibility
12 12

  
13 13
  def setup
14 14
    super
test/fileutils/visibility_tests.rb
2 2
require 'test/unit'
3 3
require 'fileutils'
4 4

  
5
class TestFileUtils < Test::Unit::TestCase
5
class TestFileUtilsInc < Test::Unit::TestCase
6 6
end
7 7

  
8 8
##
9 9
# These tests are reused in the FileUtils::Verbose, FileUtils::NoWrite and
10 10
# FileUtils::DryRun tests
11 11

  
12
module TestFileUtils::Visibility
12
module TestFileUtilsInc::Visibility
13 13

  
14 14
  FileUtils::METHODS.each do |m|
15 15
    define_method "test_singleton_visibility_#{m}" do
test/rexml/test_martin_fowler.rb
3 3
require 'rexml/document'
4 4

  
5 5
module REXMLTests
6
  class OrderTester < Test::Unit::TestCase
6
  class OrderTesterMF < Test::Unit::TestCase
7 7
    DOC = <<END
8 8
<paper>
9 9
<title>Remove this element and figs order differently</title>
test/ruby/test_ifunless.rb
1 1
# frozen_string_literal: false
2 2
require 'test/unit'
3 3

  
4
class TestIfunless < Test::Unit::TestCase
4
class TestIfUnless < Test::Unit::TestCase
5 5
  def test_if_unless
6 6
    x = 'test';
7 7
    assert(if x == x then true else false end)
test/ruby/test_not.rb
1 1
# frozen_string_literal: false
2 2
require 'test/unit'
3 3

  
4
class TestIfunless < Test::Unit::TestCase
4
class TestNot < Test::Unit::TestCase
5 5
  def test_not_with_grouped_expression
6 6
    assert_equal(false, (not (true)))
7 7
    assert_equal(true, (not (false)))
test/ruby/test_weakmap.rb
39 39
      x = nil
40 40
    end
41 41
    GC.start
42
    skip # TODO: failure introduced from r60440
42
    # skip('TODO: failure introduced from r60440')
43 43
    assert_not_send([@wm, m, k])
44 44
  end
45 45
  alias test_member? test_include?
test/win32ole/test_thread.rb
6 6
require 'test/unit'
7 7

  
8 8
if defined?(WIN32OLE)
9
  class TestThread < Test::Unit::TestCase
9
  class TestWIN32OLE_THREAD < Test::Unit::TestCase
10 10
    #
11 11
    # test for Bug #2618(ruby-core:27634)
12 12
    #