Bug #14121 ยป test-class_renames.patch
| test/-ext-/array/test_resize.rb | ||
|---|---|---|
|
require 'test/unit'
|
||
|
require '-test-/array/resize'
|
||
|
class TestArray < Test::Unit::TestCase
|
||
|
class Test_Array < Test::Unit::TestCase
|
||
|
class TestResize < Test::Unit::TestCase
|
||
|
def test_expand
|
||
|
feature = '[ruby-dev:42912]'
|
||
| test/-ext-/bignum/test_big2str.rb | ||
|---|---|---|
|
require 'test/unit'
|
||
|
require "-test-/bignum"
|
||
|
class TestBignum < Test::Unit::TestCase
|
||
|
class Test_Bignum < Test::Unit::TestCase
|
||
|
class TestBig2str < Test::Unit::TestCase
|
||
|
SIZEOF_BDIGIT = Integer::SIZEOF_BDIGIT
|
||
| test/-ext-/bignum/test_bigzero.rb | ||
|---|---|---|
|
require 'test/unit'
|
||
|
require "-test-/bignum"
|
||
|
class TestBignum < Test::Unit::TestCase
|
||
|
class Test_Bignum < Test::Unit::TestCase
|
||
|
class TestBigZero < Test::Unit::TestCase
|
||
|
def test_equal_0
|
||
|
bug8204 = '[ruby-core:53893] [Bug #8204]'
|
||
| test/-ext-/bignum/test_div.rb | ||
|---|---|---|
|
require 'test/unit'
|
||
|
require "-test-/bignum"
|
||
|
class TestBignum < Test::Unit::TestCase
|
||
|
class Test_Bignum < Test::Unit::TestCase
|
||
|
class TestDiv < Test::Unit::TestCase
|
||
|
SIZEOF_BDIGIT = Integer::SIZEOF_BDIGIT
|
||
| test/-ext-/bignum/test_mul.rb | ||
|---|---|---|
|
require 'test/unit'
|
||
|
require "-test-/bignum"
|
||
|
class TestBignum < Test::Unit::TestCase
|
||
|
class Test_Bignum < Test::Unit::TestCase
|
||
|
class TestMul < Test::Unit::TestCase
|
||
|
SIZEOF_BDIGIT = Integer::SIZEOF_BDIGIT
|
||
| test/-ext-/bignum/test_pack.rb | ||
|---|---|---|
|
require 'test/unit'
|
||
|
require "-test-/bignum"
|
||
|
class TestBignum < Test::Unit::TestCase
|
||
|
class Test_Bignum < Test::Unit::TestCase
|
||
|
class TestPack < Test::Unit::TestCase
|
||
|
MSWORD_FIRST = Integer::INTEGER_PACK_MSWORD_FIRST
|
||
| test/-ext-/bignum/test_str2big.rb | ||
|---|---|---|
|
require 'test/unit'
|
||
|
require "-test-/bignum"
|
||
|
class TestBignum < Test::Unit::TestCase
|
||
|
class Test_Bignum < Test::Unit::TestCase
|
||
|
class TestStr2big < Test::Unit::TestCase
|
||
|
SIZEOF_BDIGIT = Integer::SIZEOF_BDIGIT
|
||
| test/-ext-/exception/test_data_error.rb | ||
|---|---|---|
|
require 'test/unit'
|
||
|
module Bug
|
||
|
class TestException < Test::Unit::TestCase
|
||
|
class Test_ExceptionDE < Test::Unit::TestCase
|
||
|
def test_cleanup_data_error
|
||
|
bug9167 = '[ruby-core:58643] [Bug #9167]'
|
||
|
assert_normal_exit(<<-'end;', bug9167) # do
|
||
| test/-ext-/exception/test_enc_raise.rb | ||
|---|---|---|
|
require '-test-/exception'
|
||
|
module Bug
|
||
|
class TestException < Test::Unit::TestCase
|
||
|
class Test_ExceptionER < Test::Unit::TestCase
|
||
|
def test_enc_raise
|
||
|
feature5650 = '[ruby-core:41160]'
|
||
|
Encoding.list.each do |enc|
|
||
| test/-ext-/exception/test_ensured.rb | ||
|---|---|---|
|
class Bug7802 < RuntimeError
|
||
|
end
|
||
|
class TestException < Test::Unit::TestCase
|
||
|
class Test_ExceptionE < Test::Unit::TestCase
|
||
|
def test_ensured
|
||
|
assert_separately([], <<-'end;') # do
|
||
| test/-ext-/exception/test_exception_at_throwing.rb | ||
|---|---|---|
|
require 'test/unit'
|
||
|
module Bug
|
||
|
class TestException < Test::Unit::TestCase
|
||
|
class Test_ExceptionAT < Test::Unit::TestCase
|
||
|
def test_exception_at_throwing
|
||
|
assert_separately(%w[-r-test-/exception], "#{<<-"begin;"}\n#{<<-"end;"}")
|
||
|
begin;
|
||
| test/-ext-/hash/test_delete.rb | ||
|---|---|---|
|
require 'test/unit'
|
||
|
require '-test-/hash'
|
||
|
class TestHash < Test::Unit::TestCase
|
||
|
class Test_Hash < Test::Unit::TestCase
|
||
|
class TestDelete < Test::Unit::TestCase
|
||
|
def test_delete
|
||
|
hash = Bug::Hash.new
|
||
| test/-ext-/integer/test_integer.rb | ||
|---|---|---|
|
require 'test/unit'
|
||
|
require '-test-/integer'
|
||
|
class TestInteger < Test::Unit::TestCase
|
||
|
class Test_Integer < Test::Unit::TestCase
|
||
|
FIXNUM_MIN = RbConfig::LIMITS['FIXNUM_MIN']
|
||
|
FIXNUM_MAX = RbConfig::LIMITS['FIXNUM_MAX']
|
||
| test/-ext-/integer/test_my_integer.rb | ||
|---|---|---|
|
require 'test/unit'
|
||
|
require "-test-/integer"
|
||
|
class TestIntegerExt < Test::Unit::TestCase
|
||
|
class Test_MyInteger < Test::Unit::TestCase
|
||
|
def test_my_integer_to_f
|
||
|
assert_raise(NotImplementedError) do
|
||
|
Bug::Integer::MyInteger.new.to_f
|
||
| test/-ext-/method/test_arity.rb | ||
|---|---|---|
|
require '-test-/method'
|
||
|
require 'test/unit'
|
||
|
class TestMethod < Test::Unit::TestCase
|
||
|
class Test_Method < Test::Unit::TestCase
|
||
|
class TestArity < Test::Unit::TestCase
|
||
|
class A
|
||
|
def foo0()
|
||
| test/-ext-/proc/test_bmethod.rb | ||
|---|---|---|
|
require 'test/unit'
|
||
|
require '-test-/proc'
|
||
|
class TestProc < Test::Unit::TestCase
|
||
|
class Test_Proc < Test::Unit::TestCase
|
||
|
class TestBMethod < Test::Unit::TestCase
|
||
|
end
|
||
|
end
|
||
|
class TestProc::TestBMethod
|
||
|
class Test_Proc::TestBMethod
|
||
|
class Base
|
||
|
def foo(*a)
|
||
|
a
|
||
| test/-ext-/test_notimplement.rb | ||
|---|---|---|
|
# frozen_string_literal: false
|
||
|
require '-test-/notimplement'
|
||
|
class TestNotImplement < Test::Unit::TestCase
|
||
|
class Test_NotImplement < Test::Unit::TestCase
|
||
|
def test_funcall_notimplement
|
||
|
bug3662 = '[ruby-dev:41953]'
|
||
|
assert_raise(NotImplementedError, bug3662) {
|
||
| test/erb/test_erb.rb | ||
|---|---|---|
|
# frozen_string_literal: false
|
||
|
require 'test/unit'
|
||
|
require 'erb'
|
||
|
require 'stringio'
|
||
|
class TestERB < Test::Unit::TestCase
|
||
|
class MyError < RuntimeError ; end
|
||
| ... | ... | |
|
$stdout = orig
|
||
|
out.rewind
|
||
|
assert_equal('9', out.read)
|
||
|
return unless num # to remove warning
|
||
|
end
|
||
|
class Foo; end
|
||
| test/erb/test_erb_m17n.rb | ||
|---|---|---|
|
require 'test/unit'
|
||
|
require 'erb'
|
||
|
class TestERB < Test::Unit::TestCase
|
||
|
class TestERBEncoding < Test::Unit::TestCase
|
||
|
def test_result_encoding
|
||
|
erb = ERB.new("hello")
|
||
|
assert_equal __ENCODING__, erb.result.encoding
|
||
| test/fileutils/test_dryrun.rb | ||
|---|---|---|
|
class TestFileUtilsDryRun < Test::Unit::TestCase
|
||
|
include FileUtils::DryRun
|
||
|
include TestFileUtils::Visibility
|
||
|
include TestFileUtilsInc::Visibility
|
||
|
def setup
|
||
|
super
|
||
| test/fileutils/test_nowrite.rb | ||
|---|---|---|
|
class TestFileUtilsNoWrite < Test::Unit::TestCase
|
||
|
include FileUtils::NoWrite
|
||
|
include TestFileUtils::Visibility
|
||
|
include TestFileUtilsInc::Visibility
|
||
|
def setup
|
||
|
super
|
||
| test/fileutils/test_verbose.rb | ||
|---|---|---|
|
class TestFileUtilsVerbose < Test::Unit::TestCase
|
||
|
include FileUtils::Verbose
|
||
|
include TestFileUtils::Visibility
|
||
|
include TestFileUtilsInc::Visibility
|
||
|
def setup
|
||
|
super
|
||
| test/fileutils/visibility_tests.rb | ||
|---|---|---|
|
require 'test/unit'
|
||
|
require 'fileutils'
|
||
|
class TestFileUtils < Test::Unit::TestCase
|
||
|
class TestFileUtilsInc < Test::Unit::TestCase
|
||
|
end
|
||
|
##
|
||
|
# These tests are reused in the FileUtils::Verbose, FileUtils::NoWrite and
|
||
|
# FileUtils::DryRun tests
|
||
|
module TestFileUtils::Visibility
|
||
|
module TestFileUtilsInc::Visibility
|
||
|
FileUtils::METHODS.each do |m|
|
||
|
define_method "test_singleton_visibility_#{m}" do
|
||
| test/rexml/test_martin_fowler.rb | ||
|---|---|---|
|
require 'rexml/document'
|
||
|
module REXMLTests
|
||
|
class OrderTester < Test::Unit::TestCase
|
||
|
class OrderTesterMF < Test::Unit::TestCase
|
||
|
DOC = <<END
|
||
|
<paper>
|
||
|
<title>Remove this element and figs order differently</title>
|
||
| test/ruby/test_ifunless.rb | ||
|---|---|---|
|
# frozen_string_literal: false
|
||
|
require 'test/unit'
|
||
|
class TestIfunless < Test::Unit::TestCase
|
||
|
class TestIfUnless < Test::Unit::TestCase
|
||
|
def test_if_unless
|
||
|
x = 'test';
|
||
|
assert(if x == x then true else false end)
|
||
| test/ruby/test_not.rb | ||
|---|---|---|
|
# frozen_string_literal: false
|
||
|
require 'test/unit'
|
||
|
class TestIfunless < Test::Unit::TestCase
|
||
|
class TestNot < Test::Unit::TestCase
|
||
|
def test_not_with_grouped_expression
|
||
|
assert_equal(false, (not (true)))
|
||
|
assert_equal(true, (not (false)))
|
||
| test/ruby/test_weakmap.rb | ||
|---|---|---|
|
x = nil
|
||
|
end
|
||
|
GC.start
|
||
|
skip # TODO: failure introduced from r60440
|
||
|
# skip('TODO: failure introduced from r60440')
|
||
|
assert_not_send([@wm, m, k])
|
||
|
end
|
||
|
alias test_member? test_include?
|
||
| test/win32ole/test_thread.rb | ||
|---|---|---|
|
require 'test/unit'
|
||
|
if defined?(WIN32OLE)
|
||
|
class TestThread < Test::Unit::TestCase
|
||
|
class TestWIN32OLE_THREAD < Test::Unit::TestCase
|
||
|
#
|
||
|
# test for Bug #2618(ruby-core:27634)
|
||
|
#
|
||