Debian Codegraph @

t/23rawfunctions.t

raw
1
2 use strict;
3 use warnings;
4
5 use Test::More tests => 2;
6
7 use XML::LibXML;
8
9 my $doc = XML::LibXML->createDocument;
10
11 my $t1 = $doc->createTextNode( "foo" );
12 my $t2 = $doc->createTextNode( "bar" );
13
14 $t1->addChild( $t2 );
15
16 eval {
17 my $v = $t2->nodeValue;
18 };
19 # TEST
20 ok($@, 'An exception was thrown');
21
22 # TEST
23 ok(1, 'End');