Sha256: 456959914e10e7790675a57dab9d9c1224204239475e6d0a6c25bec63733ac3e

Contents?: true

Size: 735 Bytes

Versions: 73

Compression:

Stored size: 735 Bytes

Contents

#!/usr/bin/env perl
use Test::More;
use Path::Tiny;
use YAML 'LoadFile';
use FindBin;
use lib "$FindBin::Bin/../lib";
use Exercism::Generator;

my $base_dir = path(__FILE__)->realpath->parent->parent;

if (!$base_dir->child('problem-specifications')->is_dir) {
  BAIL_OUT 'problem-specifications directory required';
}

foreach (sort {$a cmp $b} $base_dir->child('exercises')->children) {
  if ($_->child('.meta/exercise-data.yaml')->is_file) {
    TODO: {
      local $TODO = '#';
      is $_->child($_->basename.'.t')->slurp,
        Exercism::Generator->new({data => LoadFile($_->child('.meta/exercise-data.yaml')), exercise => $_->basename})->test,
        $_->basename.': test suite matches generated';
    }
  }
}

done_testing;

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
trackler-2.2.1.119 tracks/perl5/t/generated-tests.t
trackler-2.2.1.118 tracks/perl5/t/generated-tests.t
trackler-2.2.1.117 tracks/perl5/t/generated-tests.t
trackler-2.2.1.116 tracks/perl5/t/generated-tests.t
trackler-2.2.1.115 tracks/perl5/t/generated-tests.t
trackler-2.2.1.114 tracks/perl5/t/generated-tests.t
trackler-2.2.1.113 tracks/perl5/t/generated-tests.t
trackler-2.2.1.111 tracks/perl5/t/generated-tests.t
trackler-2.2.1.110 tracks/perl5/t/generated-tests.t
trackler-2.2.1.109 tracks/perl5/t/generated-tests.t
trackler-2.2.1.108 tracks/perl5/t/generated-tests.t
trackler-2.2.1.107 tracks/perl5/t/generated-tests.t
trackler-2.2.1.106 tracks/perl5/t/generated-tests.t