Debian Codegraph @

t/config_utils.t

raw
1 use strict;
2 use warnings;
3
4 use Test::More;
5 use Test::Fatal;
6
7 use Dancer2::ConfigUtils qw/normalize_config_entry/;
8
9 is( normalize_config_entry( 'charset', 'UTF-8' ), 'utf-8', 'normalized UTF-8 to utf-8');
10
11 like(
12 exception { normalize_config_entry( 'charset', 'BOGUS' ) },
13 qr{Charset defined in configuration is wrong : couldn't identify 'BOGUS'},
14 'Configuration file charset failure',
15 );
16
17 done_testing;