tracks/perl6/exercises/word-count/example.yaml in trackler-2.2.1.53 vs tracks/perl6/exercises/word-count/example.yaml in trackler-2.2.1.54
- old
+ new
@@ -1,15 +1,15 @@
exercise: WordCount
version: 1
plan: 12
imports: '&count-words'
-tests: |
+tests: |-
is-deeply (% = .<input>.&count-words), |.<expected description> for @($c-data<cases>);
unit: module
-example: |
+example: |-
sub count-words (Str:D $str --> Hash:D) is export {
$str.lc.comb(/ <alnum>+ (\'<alnum>+)? /).Bag.hash
}
-stub: |
+stub: |-
sub count-words ($str) is export {
}