File: slide.pm

package info (click to toggle)
liblist-moreutils-xs-perl 0.430-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,116 kB
  • sloc: perl: 9,038; ansic: 159; makefile: 3
file content (11 lines) | stat: -rw-r--r-- 269 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11

use Test::More;
use Test::LMU;

# use case provided my Michael Schwern
my @ol = (0 .. 3);
is(join(", ", slide { "$a and $b" } @ol), "0 and 1, 1 and 2, 2 and 3", "M. Schwern requested example");

is_dying('slide without sub' => sub { &slide(0 .. 3); });

done_testing;