Sha256: 8bf67980fd46a1235bfac2fe723b5fcc1da8dd50a518c1271ba35f86d5d382b8
Contents?: true
Size: 951 Bytes
Versions: 1
Compression:
Stored size: 951 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/more/classinherit.rb # # Extracted Tue Jun 06 09:30:19 EDT 2006 # Unit Tools Reap Test Extractor # require 'facets/more/classinherit.rb' require 'test/unit' class TC_ClassInherit < Test::Unit::TestCase # fixture module N ClassInherit do def n ; 43 ; end end #extend ClassInherit end class X include N def n ; 11 ; end end module K include N ClassInherit do def n ; super + 1 ; end end end class Z include K end # tests def test_01 assert_equal( 43, N.n ) end def test_02 assert_equal( 43, X.n ) end def test_03 assert_equal( 11, X.new.n ) end def test_04 assert_equal( 44, K.n ) end def test_05 assert_equal( 44, Z.n ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.4.1 | test/lib/facets/more/test_classinherit.rb |