Sha256: 78941d92032e983d77b1b4c7fad58143de088971a334b342aeed68bc3c69662c
Contents?: true
Size: 429 Bytes
Versions: 3
Compression:
Stored size: 429 Bytes
Contents
# Test for lib/facets/kernel/deepcopy require 'facets/kernel/deepcopy.rb' require 'test/unit' class TestKernelCopy < 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_deep_copy o = B.new oc = o.deep_copy assert_equal( 1, o.b.a ) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
facets-2.2.1 | test/unit/kernel/test_deepcopy.rb |
facets-2.2.0 | test/unit/kernel/test_deepcopy.rb |
facets-2.3.0 | test/core/kernel/test_deepcopy.rb |