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.180 tracks/perl5/t/generated-tests.t
trackler-2.2.1.179 tracks/perl5/t/generated-tests.t
trackler-2.2.1.178 tracks/perl5/t/generated-tests.t
trackler-2.2.1.177 tracks/perl5/t/generated-tests.t
trackler-2.2.1.176 tracks/perl5/t/generated-tests.t
trackler-2.2.1.175 tracks/perl5/t/generated-tests.t
trackler-2.2.1.174 tracks/perl5/t/generated-tests.t
trackler-2.2.1.173 tracks/perl5/t/generated-tests.t
trackler-2.2.1.172 tracks/perl5/t/generated-tests.t
trackler-2.2.1.171 tracks/perl5/t/generated-tests.t
trackler-2.2.1.170 tracks/perl5/t/generated-tests.t
trackler-2.2.1.169 tracks/perl5/t/generated-tests.t
trackler-2.2.1.167 tracks/perl5/t/generated-tests.t
trackler-2.2.1.166 tracks/perl5/t/generated-tests.t
trackler-2.2.1.165 tracks/perl5/t/generated-tests.t
trackler-2.2.1.164 tracks/perl5/t/generated-tests.t
trackler-2.2.1.163 tracks/perl5/t/generated-tests.t
trackler-2.2.1.162 tracks/perl5/t/generated-tests.t
trackler-2.2.1.161 tracks/perl5/t/generated-tests.t
trackler-2.2.1.160 tracks/perl5/t/generated-tests.t