Debian Codegraph @

t/01basic.t

raw
1 use strict;
2 use warnings;
3
4 use Test::More tests => 3;
5
6 use XML::LibXML;
7
8 # TEST
9 ok(1, 'Loaded fine');
10
11 my $p = XML::LibXML->new();
12 # TEST
13 ok ($p, 'Can initialize a new XML::LibXML instance');
14
15 my ($runtime_version) = (XML::LibXML::LIBXML_RUNTIME_VERSION() =~ /\A(\d+)/);
16
17 # TEST
18 if (!is (
19 XML::LibXML::LIBXML_VERSION, $runtime_version,
20 'LIBXML__VERSION == LIBXML_RUNTIME_VERSION',
21 ))
22 {
23 diag("DO NOT REPORT THIS FAILURE: Your setup of library paths is incorrect!");
24 }
25
26 diag( "\n\nCompiled against libxml2 version: ",XML::LibXML::LIBXML_VERSION,
27 "\nRunning libxml2 version: ",$runtime_version,
28 "\n\n");