remove some debugging statements
[scpubgit/stemmatology.git] / t / analysis.t
index 19a6c50..30c3852 100755 (executable)
@@ -114,7 +114,12 @@ foreach my $row ( @{$results->{'variants'}} ) {
                }
        } else {
                # If not displaying, we're testing.
-               is( $row->{'genealogical'}, $expected{$row->{'id'}}, 
+               # HACK to cope with formerly unuseful rows
+               unless( exists $expected{$row->{'id'}} ) {
+                       $expected{$row->{'id'}} = 1;
+               }
+               my $gen_bool = $row->{'genealogical'} ? 1 : '';
+               is( $gen_bool, $expected{$row->{'id'}}, 
                        "Got expected genealogical result for rank " . $row->{'id'} );
                # If the row is genealogical, there should be one reading with no parents,
                # every reading should independently occur exactly once, and the total