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