Sha256: 1ede9b6522418c1aa52e8e53b51b8949a2c737a312bd6738af5ab738771f6f6f

Contents?: true

Size: 656 Bytes

Versions: 1

Compression:

Stored size: 656 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facet/kernel/as.rb
#
# Extracted Wed Jan 25 11:25:39 EST 2006
# Unit Tools Reap Test Extractor
#

require 'facet/kernel/as.rb'


  require 'test/unit'

  class TCKernel < Test::Unit::TestCase
    class A
      def x; "A.x"; end
      def y; "A.y"; end
    end
    class B < A
      def x; "B.x" end
      def y; "B.y" end
    end
    class C < B
      def x; "C.x"; end
      def y; as.x ; end
    end

    def setup
      @c = C.new
    end

    def test_as
      assert_equal("B.x", @c.y)
      assert_equal("C.x", @c.x)
    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_as.rb