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