File: _colorize.t

package info (click to toggle)
libtest-expander-perl 2.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 324 kB
  • sloc: perl: 457; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 459 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use strict;
use warnings
  FATAL    => qw( all ),
  NONFATAL => qw( deprecated exec internal malloc newline once portable redefine recursion uninitialized );

use Test::Expander;

plan( 2 );

const my $VALUE => 'value';
my $colorizing;

$colorizing = 'unknown';
is( $METHOD_REF->( $VALUE, $colorizing ),   $VALUE,           'unknown colorizing' );

$colorizing = 'exported';
like( $METHOD_REF->( $VALUE, $colorizing ), qr/^.+$VALUE.+$/, 'known colorizing' );