1#!/usr/bin/perl -w
2
3use Test::More;
4use strict;
5
6BEGIN
7   {
8   plan tests => 4;
9   chdir 't' if -d 't';
10   use lib '../lib';
11   use_ok ("Heap::Fibonacci") or die($@);
12   };
13
14can_ok ("Heap::Fibonacci", qw/
15  new
16
17  elem
18  absorb
19  add
20  ascending_cut
21  decrease_key
22  delete
23  consolidate
24  link_to_left_of
25  link_as_parent_of 
26
27  minimum
28  top
29
30  extract_top
31  extract_minimum
32  /);
33
34my $heap = Heap::Fibonacci->new();
35
36like (ref($heap), qr/Heap::Fibonacci/, 'new returned an object');
37
38my $ver = $Heap::Fibonacci::VERSION;
39ok ($ver >= 0.80, "Heap::Fibonacci::VERSION >= 0.80 (is: $ver)");
40