Subject: | compare attributes (and other types of nodes?) |
The following passes, and I definitely do not think it should:
use Test::More;
plan tests => 1;
use Test::XML::Ordered qw(is_xml_ordered);
is_xml_ordered(
[string => '<xml stuff="foo"/>'],
[string => '<xml/>'],
'XML structure'
);
The attribute is ignored altogether, which I feel is very bad. This is not documented, and the only compared module, Test::XML, does catch this error.