Sha256: faaf9a4b1bd12c48b3ba730d4e54fd27b00eece94e46c8e0713dffe80f4c5ddc

Contents?: true

Size: 640 Bytes

Versions: 1

Compression:

Stored size: 640 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/kernel/copy.rb
#
# Extracted Fri Sep 08 20:20:32 EDT 2006
# Unit Tools Reap Test Extractor
#

require 'facets/core/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.7.46 test/lib/facets/core/kernel/test_copy.rb