File: 09two-tags.t

package info (click to toggle)
libxml-semanticdiff-perl 1.0007-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 340 kB
  • sloc: perl: 703; xml: 532; sh: 4; makefile: 2
file content (39 lines) | stat: -rw-r--r-- 470 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
use strict;
use warnings;

use Test::More tests => 1;

use XML::SemanticDiff;

my $first_item_is_t = <<"EOF";
<s>
    <p>
        T
    </p>
    <p>
        G
    </p>
</s>
EOF

my $first_item_is_f = <<"EOF";
<s>
    <p>
        F
    </p>
    <p>
        G
    </p>
</s>
EOF

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

my @results = $diff->compare($first_item_is_t, $first_item_is_f);

# TEST
is (scalar(@results), 1, "Making sure there's one difference in the XML");

1;