# Ruby Treasures 0.1
# Copyright (C) 2001 Paul Brannan <paul@atdesk.com>
# 
# You may distribute this software under the same terms as Ruby (see the file
# COPYING that was distributed with this library).
# 
module OrderableTest
  def test_first_and_last
    DS_Test_Case.method_checked(:first, @test_container)
    DS_Test_Case.method_checked(:last, @test_container)
    for i in 0...N do
      a = generate_random_container(i, @analgous_container)
      l = generate_container_from_analgous(a)
      assert_equal a.first, l.first
      assert_equal a.last, l.last
    end
  end
end
