tracks/perl6/exercises/raindrops/example.yaml in trackler-2.2.1.53 vs tracks/perl6/exercises/raindrops/example.yaml in trackler-2.2.1.54
- old
+ new
@@ -1,27 +1,27 @@
exercise: Raindrops
version: 1
plan: 20
imports: '&convert'
-tests: |
+tests: |-
for @($c-data<cases>) {
subtest {
plan 2;
is .<number>.&convert, |.<expected description>;
isa-ok .<number>.&convert, Str;
}
}
unit: module
-example: |
+example: |-
sub convert (Int:D $num --> Str:D) is export {
my $str = '';
given $num {
when * %% 3 {$str ~= 'Pling'; proceed}
when * %% 5 {$str ~= 'Plang'; proceed}
when * %% 7 {$str ~= 'Plong'}
}
return $str ?? $str !! $num.Str;
}
-stub: |
+stub: |-
sub convert ($num) is export {
}