Sha256: 83ecdd40272f316d1500480b7f3731bc29a0fa122e6406b088344a171ac999b4
Contents?: true
Size: 666 Bytes
Versions: 1
Compression:
Stored size: 666 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/more/pqueue.rb # # Extracted Fri Feb 16 02:00:36 EST 2007 # Project.rb Test Extraction # require 'facets/more/pqueue.rb' require 'test/unit' # TODO Expand on these tests. class TC01 < Test::Unit::TestCase def setup @pq=PQueue.new(proc{|x,y| x>y}) end def test_01 @pq.push(2) @pq.push(3) @pq.push(4) @pq.push(3) @pq.push(2) @pq.push(4) @pq.push_array([3,5,4]) assert_equal( 9, @pq.size ) assert_equal( [2, 2, 3, 3, 3, 4, 4, 4, 5], @pq.to_a ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.8.49 | test/lib/facets/more/test_pqueue.rb |