Conf-Libconfig
view release on metacpan or search on metacpan
t/02-read.t view on Meta::CPAN
);
SKIP: {
skip "libconfig $ver hex/int64 differs from >= 1.4", 1 if $ver < 140;
is_deeply($foo2->value("misc"),
{
"port"=>5000,
"pi"=>"3.14159265",
"enabled"=>0,
"mask"=>-1430532899,
"unicode"=>"STARGÎÌTE SG-1",
"bigint"=>9223372036854775807,
"bighex"=>1234605616436508552,
},
"value for list - status ok",
);
}
is($foo2->lookup_string("application.test-comment"),
"/* hello\n \"there\"*/",
{ } );
# miscellaneous stuff
misc:
{
port = 5000;
pi = 3.14159265;
enabled = FALSE;
mask = 0xAABBCCDD;
unicode = "STARGÎÌTE SG-1"; // UTF-8 string
bigint = 9223372036854775807L;
bighex = 0x1122334455667788L;
};
conffile_option: ( "F", "conffile" );
### eof
( run in 0.337 second using v1.01-cache-2.11-cpan-8f98c5d2c55 )