File: 13to-doc-read.t

package info (click to toggle)
libxml-semanticdiff-perl 1.00.00-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 232 kB
  • sloc: perl: 535; xml: 532; makefile: 13
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");