Sha256: 1f76aef95422672bf8944bdf84d65cbc751aeaf44a4700194d30d2e2c2461444
Contents?: true
Size: 595 Bytes
Versions: 6
Compression:
Stored size: 595 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ | # |_|\___||___/\__| # # for facets/autoarray.rb require 'facets/autoarray.rb' require 'test/unit' class TC_Autoarray def test_001 a = Autoarray.new assert_equal( 12, a[1][2][3] = 12 ) assert_equal( [nil, [nil, nil, [nil, nil, nil, 12]]], a ) assert_equal( [], a[2][3][4] ) assert_equal( [nil, [nil, nil, [nil, nil, nil, 12]]], a ) assert_equal( "Negative", a[1][-2][1] = "Negative" ) assert_equal( [nil, [nil, [nil, "Negative"], [nil, nil, nil, 12]]], a ) end end
Version data entries
6 entries across 6 versions & 1 rubygems