# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/nano/array/range.rb # # Extracted Fri Oct 28 14:20:18 EDT 2005 # Unit Tools Reap Test Extractor # require 'nano/array/range.rb' require 'test/unit' class TCArray < Test::Unit::TestCase def test_range a = [1,2,3,4,5] b = [1,2,3,4,5,6] assert_equal( (0..4), a.range ) assert_equal( (0..5), b.range ) assert_equal( (1..3), a.range(2,4) ) assert_equal( (1..2), b.range(2,3) ) assert_equal( (3..1), b.range(4,2) ) end end