Clinical-Genomics
develop
develop
  • Introduction
  • Documentation
    • Setup
    • References
    • Analysis
    • Parameters
    • Recipes
    • Code
      • Best Practise
      • Adding an env
    • API
      • Define Parameters
      • Download References
      • Identifiers
      • Initiation File
      • Install
      • IO
      • Modules
      • Path
      • Pedigree
      • QC metrics
      • Sample info
      • Tests
        • Log
        • Data
      • Subroutines
    • Cli
Powered by GitBook
On this page
  1. Documentation
  2. API
  3. Tests

Data

When testing complex data structures use Test::More and the is_deeply sub.

my @covariets = qw{ ReadGroupCovariate ContextCovariate CycleCovariate QualityScoreCovariate };
my @expected_covariets = qw{ ReadGroupCovariate ContextCovariate CycleCovariate QualityScoreCovariate };

is_deeply( \@covariets, \@expected_covariets, q{Identical arrays} );

my %colors = (red  => q{car},
          blue => q{sky},
             );
my %expected_colors = (red  => q{car},
                       blue => q{sky},
                      );
is_deeply(\%colors, \%expected_colors, q{Identical hashes});
PreviousLogNextSubroutines