File: selective.t

package info (click to toggle)
libsmart-comments-perl 1.000005-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 200 kB
  • ctags: 12
  • sloc: perl: 302; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 320 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use Smart::Comments '###', '####', '######';

close *STDERR;
my $STDERR = q{};
open *STDERR, '>', \$STDERR;

### ok 1 - Accepts 3 #'s...
#### ok 2 - Accepts 4 #'s...
##### not ok 3 - Shouldn't accept 5 #'s...
###### ok 3 - Accepts 6 #'s...

$STDERR =~ s/^###\s*//gm;
$STDERR =~ s/^\s*\n//gxms;

print "1..3\n", $STDERR;