Sha256: 58b465a90b38d07805349b38c5b20b4641073c4c8e3ef9acd39234b280876a02

Contents?: true

Size: 628 Bytes

Versions: 1

Compression:

Stored size: 628 Bytes

Contents

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

require 'facet/kernel/copy.rb'


  require 'test/unit'

  class TCKernel < Test::Unit::TestCase
    # fixtures for copy / deep_copy
    class A
      attr_reader :a
      def initialize
        @a = 1
      end
    end
    class B
      attr_reader :b
      def initialize
        @b = A.new
      end
    end

    def test_copy
      o = B.new
      oc = o.copy
      assert_equal( 1, o.b.a  )
    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_copy.rb