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::Binomial") or die($@);
12   };
13
14can_ok ("Heap::Binomial", qw/
15  new
16
17  elem
18  absorb
19  add
20  decrease_key
21  delete
22
23  minimum
24  top
25
26  extract_top
27  extract_minimum
28
29  moveto
30  link_to
31  absorb_children
32  self_union_once
33  self_union
34  /);
35
36my $heap = Heap::Binomial->new();
37
38like (ref($heap), qr/Heap::Binomial/, 'new returned an object');
39
40my $ver = $Heap::Binomial::VERSION;
41ok ($ver >= 0.80, "Heap::Binomial::VERSION >= 0.80 (is: $ver)");
42