File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use warnings;
5
5
6
6
use utf8;
7
7
8
- use Test::More tests => 456 ;
8
+ use Test::More tests => 458 ;
9
9
10
10
# "Homer gave me a kidney: it wasn't his, I didn't need it,
11
11
# and it came postage due- but I appreciated the gesture!"
@@ -385,6 +385,7 @@ $dom->parse(<<EOF);
385
385
xmlns:bk='uri:book-ns'
386
386
xmlns:isbn='uri:isbn-ns'>
387
387
<bk:title>Programming Perl</bk:title>
388
+ <comment>rocks!</comment>
388
389
<nons xmlns=''>
389
390
<section>Nothing</section>
390
391
</nons>
@@ -393,6 +394,8 @@ $dom->parse(<<EOF);
393
394
</meta>
394
395
</bk:book>
395
396
EOF
397
+ is $dom -> at(' book comment' )-> namespace, ' uri:default-ns' , ' right namespace' ;
398
+ is $dom -> at(' book comment' )-> text, ' rocks!' , ' right content' ;
396
399
is $dom -> at(' book nons section' )-> namespace, undef , ' right namespace' ;
397
400
is $dom -> at(' book nons section' )-> text, ' Nothing' , ' right content' ;
398
401
is $dom -> at(' book meta number' )-> namespace, ' uri:isbn-ns' , ' right namespace' ;
You can’t perform that action at this time.
0 commit comments