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