File: 10wide-chars.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 (22 lines) | stat: -rw-r--r-- 383 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
use strict;
use warnings;

use Test::More tests => 2;

use XML::SemanticDiff;

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

my $xml_text = <<"EOX";
<?xml version="1.0" encoding="UTF-8"?>
<root>\x{263A}</root>
EOX

my @results = eval { $diff->compare($xml_text, $xml_text) };

# TEST
is ($@, q{}, "No exceptions were thrown");

# TEST
ok ((!@results), q{$xml_text is identical to itself});