Sha256: 8cd67d3c2135fcd6fd4ab220cef5bea5c368b37bf5fcd1854c33d07b39a2f8a5
Contents?: true
Size: 685 Bytes
Versions: 1
Compression:
Stored size: 685 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/more/preinitialize.rb # # Extracted Fri Feb 16 02:00:36 EST 2007 # Project.rb Test Extraction # require 'facets/more/preinitialize.rb' require 'test/unit' class TC_Preinitalize < Test::Unit::TestCase module M def preinitialize @a = 10 end end class X include M def a ; @a ; end end class Y < X def initialize super end end def test_01 x = X.new assert_equal( 10, x.a ) end def test_01 y = Y.new assert_equal( 10, y.a ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.8.49 | test/lib/facets/more/test_preinitialize.rb |