4 use Test::More qw(no_plan);
8 require 't/lib/Common.pm';
12 my $d = Digest::MD5->new;
15 my $cmd = "M = [1 0 0; 2 0 0; 3 0 0; 4 0 0];";
16 $cmd .= "D=generateDistanceMatrix(M); ";
17 $cmd .= "ltspsFurthestNeighbourHeuristic(M);";
22 $erm = "output didn't match what I expected";
23 $tm = "pathological furthest neighbour heuristic use (4 cities on the same point)";
25 my $expected_fn = "t/expected_output/302_pathological_furthest_heuristic_use";
27 open(my $expected, "<", $expected_fn);
28 open(my $got, "<", "t/matlab_output/output");
30 $d->addfile($expected);
31 my $d_expected = $d->hexdigest;
34 my $d_got = $d->hexdigest;
36 print Dumper($d_expected);
39 ok(($d_expected eq $d_got or die($erm)),$tm);