X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fanalysis.t;h=2388d91c0f582f6e2e3952dc5534b4c0bd1b19cc;hb=fae07016dc0e300ca65f3ca03d408c47d80c9217;hp=19a6c50653fa3fdee6f0dc12ebcfacd85a6fc87f;hpb=88a6bac5ee5b38c4544a0cb58b67f8ee37b8b023;p=scpubgit%2Fstemmatology.git diff --git a/t/analysis.t b/t/analysis.t index 19a6c50..2388d91 100755 --- a/t/analysis.t +++ b/t/analysis.t @@ -114,6 +114,10 @@ foreach my $row ( @{$results->{'variants'}} ) { } } else { # If not displaying, we're testing. + # HACK to cope with formerly unuseful rows + unless( exists $expected{$row->{'id'}} ) { + $expected{$row->{'id'}} = 1; + } is( $row->{'genealogical'}, $expected{$row->{'id'}}, "Got expected genealogical result for rank " . $row->{'id'} ); # If the row is genealogical, there should be one reading with no parents,