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.139 tracks/perl5/t/generated-tests.t
trackler-2.2.1.138 tracks/perl5/t/generated-tests.t
trackler-2.2.1.137 tracks/perl5/t/generated-tests.t
trackler-2.2.1.136 tracks/perl5/t/generated-tests.t
trackler-2.2.1.135 tracks/perl5/t/generated-tests.t
trackler-2.2.1.134 tracks/perl5/t/generated-tests.t
trackler-2.2.1.133 tracks/perl5/t/generated-tests.t
trackler-2.2.1.132 tracks/perl5/t/generated-tests.t
trackler-2.2.1.131 tracks/perl5/t/generated-tests.t
trackler-2.2.1.130 tracks/perl5/t/generated-tests.t
trackler-2.2.1.129 tracks/perl5/t/generated-tests.t
trackler-2.2.1.128 tracks/perl5/t/generated-tests.t
trackler-2.2.1.127 tracks/perl5/t/generated-tests.t
trackler-2.2.1.126 tracks/perl5/t/generated-tests.t
trackler-2.2.1.125 tracks/perl5/t/generated-tests.t
trackler-2.2.1.124 tracks/perl5/t/generated-tests.t
trackler-2.2.1.123 tracks/perl5/t/generated-tests.t
trackler-2.2.1.122 tracks/perl5/t/generated-tests.t
trackler-2.2.1.121 tracks/perl5/t/generated-tests.t
trackler-2.2.1.120 tracks/perl5/t/generated-tests.t