Sha256: 011f07a4ef801eb51353450d603a3f012b7ee0ecea6fde3569bb59e685a8bbbc
Contents?: true
Size: 479 Bytes
Versions: 16
Compression:
Stored size: 479 Bytes
Contents
require 'facets/kernel/constant.rb' require 'test/unit' class TCKernel < Test::Unit::TestCase def test_constant c = ::Test::Unit::TestCase.name assert_equal( ::Test::Unit::TestCase, constant(c) ) c = "Test::Unit::TestCase" assert_equal( ::Test::Unit::TestCase, constant(c) ) c = "Unit::TestCase" assert_equal( ::Test::Unit::TestCase, Test.constant(c) ) c = "TestCase" assert_equal( ::Test::Unit::TestCase, Test::Unit.constant(c) ) end end
Version data entries
16 entries across 16 versions & 1 rubygems