Sha256: 25200c4771d8fd718b76cbf93d7f6d396dad034c5959c4d7ac4ae6781b25a815
Contents?: true
Size: 701 Bytes
Versions: 1
Compression:
Stored size: 701 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/more/autoarray.rb # # Extracted Fri Feb 16 02:00:36 EST 2007 # Project.rb Test Extraction # require 'facets/more/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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.8.49 | test/lib/facets/more/test_autoarray.rb |