package main;
use strict;
use warnings;
use Test::More tests => 4;
use Data::Dumper;
$Data::Dumper::Indent = 0;
$Data::Dumper::Sortkeys = 1;
use XML::Hash::XS 'xml2hash';
$XML::Hash::XS::keep_root = 0;
our $xml_decl_utf8 = qq{};
{
is
xml2hash("\n\t ]]>"),
"\n\t abcde!\@#\$%^&*<>\n\t ",
'use special symbols',
;
}
{
is
xml2hash(" ]]]]]]>"),
' [ abc ] ]> ]]]]',
'terminate section',
;
}
{
is
xml2hash(""),
' ]',
'terminate section2',
;
}
{
is
xml2hash(""),
'',
'empty section',
;
}