Sha256: 56f41102a605deebc028a72335346e832ae8ec9aeb993b94b22bc0391e149ccc
Contents?: true
Size: 400 Bytes
Versions: 1
Compression:
Stored size: 400 Bytes
Contents
require "#{File.dirname __FILE__}/helper" require "ruby_ext/deep_clone" describe 'deep_clone' do it "basic" do hash, array = {}, ['value'] hash['key'] = array hash2 = hash.deep_clone array2 = hash2['key'] hash2.should == hash hash2.object_id.should_not == hash.object_id array2.should == array array2.object_id.should_not == array.object_id end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-ext-0.4.2 | spec/ruby_ext/deep_clone_spec.rb |