Sha256: c09d4a8bc07e9a0d8c3f96873598af7f02a994caff4748b77ff33407c0c2e673
Contents?: true
Size: 392 Bytes
Versions: 171
Compression:
Stored size: 392 Bytes
Contents
require 'test_helper' require 'tins/xt' module Tins class DeepDupTest < Test::Unit::TestCase def test_deep_dup a = [1,2,3] assert_equal a, a.deep_dup assert_not_same a, a.deep_dup end def test_deep_dup_proc f = lambda { |x| 2 * x } g = f.deep_dup assert_equal f[3], g[3] assert_equal f, g assert_same f, g end end end
Version data entries
171 entries across 153 versions & 9 rubygems