Sha256: 3892481c0d841e986d5666a3c6c59733bb6518e1d5947af8d6745f147968f8d5
Contents?: true
Size: 550 Bytes
Versions: 1
Compression:
Stored size: 550 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/nano/array/to_h.rb # # Extracted Fri Oct 28 14:20:18 EDT 2005 # Unit Tools Reap Test Extractor # require 'nano/array/to_h.rb' require 'test/unit' class TCArray < Test::Unit::TestCase def test_to_h_1 k = [1,3,5] v = [2,4,6] assert_equal( { 1=>2, 3=>4, 5=>6 }, k.zip(v).to_h ) end def test_to_h_2 a = [[1,2],[3,4],[5,6]] assert_equal( { 1=>2, 3=>4, 5=>6 }, a.to_h ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-0.9.0 | test/lib/nano/array/test_to_h.rb |