Debian Codegraph @

t/14brackets-within-values.t

raw symbols SCIP
1 #!/usr/bin/perl
2
3 # This script attempts to reproduce:
4 # https://sourceforge.net/tracker/index.php?func=detail&aid=2030786&group_id=6926&atid=106926
5
6 use strict;
7 use warnings;
8
9 use Test::More tests => 1;
10 use File::Spec;
11
12 use Config::IniFiles;
13
14 my $filename =
15 File::Spec->catfile( File::Spec->curdir(), "t", "brackets-in-values.ini" );
16
17 {
18 my $cfg = Config::IniFiles->new( -file => $filename, -allowempty => 1 );
19
20 # TEST
21 is(
22 $cfg->val( 'SiteName', 'file' ),
23 "http://www.example.com/files/file[1-22].gz",
24 "Reading value containing brackets well"
25 );
26 }