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.159 tracks/perl6/t/generated-tests.t
trackler-2.2.1.158 tracks/perl6/t/generated-tests.t
trackler-2.2.1.157 tracks/perl6/t/generated-tests.t
trackler-2.2.1.156 tracks/perl6/t/generated-tests.t
trackler-2.2.1.155 tracks/perl6/t/generated-tests.t
trackler-2.2.1.154 tracks/perl6/t/generated-tests.t
trackler-2.2.1.153 tracks/perl6/t/generated-tests.t
trackler-2.2.1.152 tracks/perl6/t/generated-tests.t
trackler-2.2.1.151 tracks/perl6/t/generated-tests.t
trackler-2.2.1.150 tracks/perl6/t/generated-tests.t
trackler-2.2.1.149 tracks/perl6/t/generated-tests.t
trackler-2.2.1.148 tracks/perl6/t/generated-tests.t
trackler-2.2.1.147 tracks/perl6/t/generated-tests.t
trackler-2.2.1.146 tracks/perl6/t/generated-tests.t
trackler-2.2.1.145 tracks/perl6/t/generated-tests.t
trackler-2.2.1.144 tracks/perl6/t/generated-tests.t
trackler-2.2.1.143 tracks/perl6/t/generated-tests.t
trackler-2.2.1.142 tracks/perl6/t/generated-tests.t
trackler-2.2.1.141 tracks/perl6/t/generated-tests.t
trackler-2.2.1.140 tracks/perl6/t/generated-tests.t