tracks/perl6/exercises/wordy/example.yaml in trackler-2.2.1.53 vs tracks/perl6/exercises/wordy/example.yaml in trackler-2.2.1.54
- old
+ new
@@ -1,20 +1,20 @@
exercise: Wordy
version: 1
plan: 18
imports: '&answer'
-tests: |
+tests: |-
for @($c-data<cases>) {
if .<expected> === False {
throws-like {.<input>.&answer}, Exception, .<description>;
} else {
is .<input>.&answer, |.<expected description>;
}
}
unit: module
-example: |
+example: |-
sub answer ($q is copy) is export {
given $q {
s:s:g/^What is|\?$//;
s:g/plus/+/;
s:g/minus/−/;
@@ -25,8 +25,8 @@
}
}
use MONKEY-SEE-NO-EVAL;
EVAL $q or fail;
}
-stub: |
+stub: |-
sub answer ($question) is export {
}