# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/nano/enumerable/each_pair.rb # # Extracted Fri Oct 28 14:20:18 EDT 2005 # Unit Tools Reap Test Extractor # require 'nano/enumerable/each_pair.rb' require 'test/unit' class TCEnumerable < Test::Unit::TestCase def test_each_pair r = [] a = [1,2,3,4] a.each_pair{ |a,b| r << [a,b] } assert_equal( [[1,2],[3,4]], r ) end end