Sha256: 03e5520bdf5b5098e6c14c0d1b0b1e0ad4912c2e383b782a93345fb425cdceb4

Contents?: true

Size: 544 Bytes

Versions: 78

Compression:

Stored size: 544 Bytes

Contents

#!/usr/bin/env perl6
use v6;
use Test;
use YAML::Parser::LibYAML;
use lib (my $base-dir = $?FILE.IO.resolve.parent.parent).add('lib');
use Exercism::Generator;

bail-out if $base-dir.add('problem-specifications') !~~ :d;
for $base-dir.add('exercises').dir.sort {
  if .add('.meta/exercise-data.yaml') ~~ :f {
    todo '';
    is .add("{.basename}.t").slurp,
      Exercism::Generator.new(data => yaml-parse(~.add: '.meta/exercise-data.yaml'), exercise => .basename).test,
      "{.basename}: test suite matches generated";
  }
}

done-testing;

Version data entries

78 entries across 78 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/perl6/t/generated-tests.t
trackler-2.2.1.179 tracks/perl6/t/generated-tests.t
trackler-2.2.1.178 tracks/perl6/t/generated-tests.t
trackler-2.2.1.177 tracks/perl6/t/generated-tests.t
trackler-2.2.1.176 tracks/perl6/t/generated-tests.t
trackler-2.2.1.175 tracks/perl6/t/generated-tests.t
trackler-2.2.1.174 tracks/perl6/t/generated-tests.t
trackler-2.2.1.173 tracks/perl6/t/generated-tests.t
trackler-2.2.1.172 tracks/perl6/t/generated-tests.t
trackler-2.2.1.171 tracks/perl6/t/generated-tests.t
trackler-2.2.1.170 tracks/perl6/t/generated-tests.t
trackler-2.2.1.169 tracks/perl6/t/generated-tests.t
trackler-2.2.1.167 tracks/perl6/t/generated-tests.t
trackler-2.2.1.166 tracks/perl6/t/generated-tests.t
trackler-2.2.1.165 tracks/perl6/t/generated-tests.t
trackler-2.2.1.164 tracks/perl6/t/generated-tests.t
trackler-2.2.1.163 tracks/perl6/t/generated-tests.t
trackler-2.2.1.162 tracks/perl6/t/generated-tests.t
trackler-2.2.1.161 tracks/perl6/t/generated-tests.t
trackler-2.2.1.160 tracks/perl6/t/generated-tests.t