File: 13to-doc-read.t

package info (click to toggle)
libxml-semanticdiff-perl 1.0004-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 268 kB
  • ctags: 40
  • sloc: perl: 584; xml: 532; makefile: 14
file content (18 lines) | stat: -rw-r--r-- 379 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use strict;
use warnings;

use Test::More tests => 1;
use XML::SemanticDiff;

my $xml_text = <<'EOF';
<start>Hello <y>There</y>!</start>
EOF

my $diff = XML::SemanticDiff->new();

my $to_processed_xml = $diff->read_xml($xml_text);

my @results = $diff->compare($xml_text, $to_processed_xml);

# TEST
is_deeply(\@results, [], "Accepted the processed XML in the second argument");