File: ENV_str.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 (22 lines) | stat: -rw-r--r-- 351 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
BEGIN { $ENV{Smart_Comments} = '###:#####'; }

use Smart::Comments -ENV;
use Test::More 'no_plan';

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

### Testing 1...
#### Testing 2...
##### Testing 3...

my $expected = <<"END_MESSAGES";

#\## Testing 1...

#\## Testing 3...
END_MESSAGES

is $STDERR, $expected      => 'Messages work';