File: 23rawfunctions.t

package info (click to toggle)
libxml-libxml-perl 1.70.ds-1%2Bdeb6u1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze-lts
  • size: 1,992 kB
  • ctags: 1,726
  • sloc: perl: 4,521; ansic: 3,583; xml: 177; sh: 62; makefile: 7
file content (18 lines) | stat: -rw-r--r-- 254 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use Test;
BEGIN { plan tests => 2 };

use XML::LibXML;

my $doc = XML::LibXML->createDocument;

my $t1 = $doc->createTextNode( "foo" );
my $t2 = $doc->createTextNode( "bar" );

$t1->addChild( $t2 );

eval {
    my $v = $t2->nodeValue;
};
ok($@);

ok(1);