Sha256: 18084b1df8a61998a7a5760bc283ce055fd2b6818f05dc70cd8fcfe8c3a7802f
Contents?: true
Size: 617 Bytes
Versions: 1
Compression:
Stored size: 617 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facet/kernel/supermethod.rb # # Extracted Wed Jan 25 11:25:39 EST 2006 # Unit Tools Reap Test Extractor # require 'facet/kernel/supermethod.rb' require 'test/unit' class TCKernel < Test::Unit::TestCase class X ; def x ; 1 ; end ; end class Y < X ; def x ; 2 ; end ; end class Z < Y ; def x ; 3 ; end ; end def test_supermethod x = X.new z = Z.new s0 = x.method( :x ) s1 = z.supermethod( X, :x ) assert_equal( s0.call, s1.call ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.0.3 | packages/core/test/lib/facet/kernel/test_supermethod.rb |