Sparrow6.git | examples/tasks/within-zoom/ | task.check


within: "hello" \s+ (.*) $$

regexp: ^^ .* ( "is" \s+ \S+ ) $$

code: <<RAKU
!raku
dump_streams();
RAKU

generator: <<RAKU
!raku
say "assert: ", streams_array()<>.elems == 1 ?? 1 !! 0 , " streams array: found 1 streams (real value {streams_array()<>.elems})";
say "assert: ", streams().keys.elems == 1 ?? 1 !! 0 , " streams keys: found 1 streams (real value {streams().keys.elems})";
say "assert: ", streams_array()<>[0].elems == 2 ?? 1 !! 0 , " streams array: layer1 found 2 elems (real value {streams_array()<>[0].elems})";
RAKU