Debian Codegraph @

t/20allowedcommentchars.t

raw symbols SCIP
1 #!/usr/bin/perl
2
3 # This script attempts to reproduce:
4 # https://rt.cpan.org/Ticket/Display.html?id=36309
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 = File::Spec->catfile( File::Spec->curdir(), "t",
15 "allowed-comment-chars.ini", );
16
17 {
18 my $cfg = Config::IniFiles->new(
19 -file => $filename,
20 -allowedcommentchars => '};',
21 );
22
23 # TEST
24 is( $cfg->val( "cat1", "mykey" ), "500", "Proper comments are ignored.", );
25 }
26