Sha256: ef10e2ea5fcb0cd2fbef828d3330e2fb79c2d7cf37b548b1fe55f59bfb6236c7
Contents?: true
Size: 1.15 KB
Versions: 78
Compression:
Stored size: 1.15 KB
Contents
#!/usr/bin/env perl6 use v6;{{=#`{{ }}=}}#`{{! Mustache tags double up as Perl 6 embedded comments}} use Test;#`{{#cdata}} use JSON::Fast;#`{{/cdata}}#`{{#modules}} use #`{{&use}};#`{{/modules}} use lib $?FILE.IO.dirname;#`{{#lib_comment}} #`[#`{{&lib_comment}}]#`{{/lib_comment}} use #`{{&exercise}};#`{{#plan}} plan #`{{&plan}};#`{{#plan_comment}} #`[#`{{&plan_comment}}]#`{{/plan_comment}}#`{{/plan}} my Version:D $version#`{{#version}} = v#`{{&version}}#`{{/version}};#`{{#version_comment}} #`[#`{{&version_comment}}]#`{{/version_comment}} #`{{#version_test_comment}} #`[#`{{&version_test_comment}}]#`{{/version_test_comment}} if #`{{&exercise}}.^ver !~~ $version { warn "\nExercise version mismatch. Further tests may fail!" ~ "\n#`{{&exercise}} is {#`{{exercise}}.^ver.gist}. " ~ "Test is {$version.gist}.\n"; } #`{{#methods}}#`{{#methods_comment}} #`[#`{{&methods_comment}}]#`{{/methods_comment}} subtest 'Class methods', { ok #`{{&exercise}}.can($_), $_ for <#`{{&methods}}>; } #`{{/methods}}#`{{#cdata}} my $c-data = from-json $=pod.pop.contents;#`{{/cdata}} #`{{&tests}}#`{{#cdata}} =head2 Canonical Data =begin code #`{{&json}} =end code#`{{/cdata}}
Version data entries
78 entries across 78 versions & 1 rubygems