fix failing tests
[scpubgit/stemmatology.git] / lib / Text / Tradition / Analysis.pm
index b81111a..7777c6c 100644 (file)
@@ -110,7 +110,8 @@ foreach my $row ( @{$data->{'variants'}} ) {
        unless( exists $expected_genealogical{$row->{'id'}} ) {
                $expected_genealogical{$row->{'id'}} = 1;
        }
-       is( $row->{'genealogical'}, $expected_genealogical{$row->{'id'}}, 
+       my $gen_bool = $row->{'genealogical'} ? 1 : 0;
+       is( $gen_bool, $expected_genealogical{$row->{'id'}}, 
                "Got correct genealogical flag for row " . $row->{'id'} );
        # Check that we have the right row with the right groups
        my $rank = $row->{'id'};