Functional coverage tree: Difference between revisions
Content added Content deleted
SqrtNegInf (talk | contribs) m (→{{header|Perl 6}}: oops, stray curlies) |
SqrtNegInf (talk | contribs) m (→{{header|Perl 6}}: simplified regex, relocate input table to end) |
||
Line 1,690: | Line 1,690: | ||
=={{header|Perl 6}}== |
=={{header|Perl 6}}== |
||
{{trans|Perl}} |
{{trans|Perl}} |
||
<lang perl6> |
<lang perl6>sub walktree ($data) { |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
q:to/END/ |
|||
NAME_HIERARCHY |WEIGHT |COVERAGE | |
NAME_HIERARCHY |WEIGHT |COVERAGE | |
||
cleaning | | | |
cleaning | | | |
||
Line 1,735: | Line 1,761: | ||
cinema | |0.75 | |
cinema | |0.75 | |
||
END |
END |
||
⚫ | |||
{ |
|||
⚫ | |||
⚫ | |||
sub walktree ($data) { |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
{{out}} |
{{out}} |
||
<pre style="font-size:70%;">NAME_HIERARCHY |WEIGHT |COVERAGE | |
<pre style="font-size:70%;">NAME_HIERARCHY |WEIGHT |COVERAGE | |