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