Skip to content

Commit c6097f0

Browse files
committed
added more tests
1 parent dfd254b commit c6097f0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

t/mojo/dom.t

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use warnings;
55

66
use utf8;
77

8-
use Test::More tests => 456;
8+
use Test::More tests => 458;
99

1010
# "Homer gave me a kidney: it wasn't his, I didn't need it,
1111
# and it came postage due- but I appreciated the gesture!"
@@ -385,6 +385,7 @@ $dom->parse(<<EOF);
385385
xmlns:bk='uri:book-ns'
386386
xmlns:isbn='uri:isbn-ns'>
387387
<bk:title>Programming Perl</bk:title>
388+
<comment>rocks!</comment>
388389
<nons xmlns=''>
389390
<section>Nothing</section>
390391
</nons>
@@ -393,6 +394,8 @@ $dom->parse(<<EOF);
393394
</meta>
394395
</bk:book>
395396
EOF
397+
is $dom->at('book comment')->namespace, 'uri:default-ns', 'right namespace';
398+
is $dom->at('book comment')->text, 'rocks!', 'right content';
396399
is $dom->at('book nons section')->namespace, undef, 'right namespace';
397400
is $dom->at('book nons section')->text, 'Nothing', 'right content';
398401
is $dom->at('book meta number')->namespace, 'uri:isbn-ns', 'right namespace';

0 commit comments

Comments
 (0)