# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facet/enumerable/ew.rb # # Extracted Wed Jan 25 11:25:39 EST 2006 # Unit Tools Reap Test Extractor # require 'facet/enumerable/ew.rb' require 'test/unit' class TCEnumerable < Test::Unit::TestCase def test_ew a = [1,2,3] b = [4,5] assert_equal( [4,5,6], a.ew + 3 ) assert_equal( [5,7], a.ew + b ) assert_equal( [[5,7],[3,4,5]], a.ew.+(b,2) ) assert_equal( [[5,7],[4,5,6]], a.ew.+(b,3) ) end end