X-Git-Url: http://git.shiar.nl/barcat.git/blobdiff_plain/843b8a4b9817d4d7d59f279ca2e74d2ae374fc78..a2fdd02d4caa4055817ea721c4790f08394a89fd:/t/examples.t diff --git a/t/examples.t b/t/examples.t index 1af87e5..c5648ad 100755 --- a/t/examples.t +++ b/t/examples.t @@ -13,7 +13,7 @@ use Test::More; my %CMDARGS = ( ping => '-c 1', curl => '-sS', - 'cat \Klog/' => '/var/log/apache2/', + 'cat \Khttpd/' => '/var/log/apache2/', ); my $filename = 'barcat'; @@ -22,9 +22,10 @@ open my $input, '<', $filename local $/ = "\n\n"; while (readline $input) { - # find code snippets in the appropriate section + # find scriptlets in the appropriate section /^=head1 EXAMPLES/ ... /^=head1/ or next; - /^\h/ or next; + /^\h/ or next; # indented code snippet + /\A\h*>/ and next; # psql prompt chomp; # compose an identifier from significant parts