Skip to content

Commit

Permalink
Fix tests for libxml 2.14.0+ blead
Browse files Browse the repository at this point in the history
  • Loading branch information
dwarring committed Dec 31, 2024
1 parent 6784e0c commit d445af8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
5 changes: 1 addition & 4 deletions t/16docnodes.t
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use v6;
use Test;
plan 11;
plan 10;

use LibXML;
use LibXML::Element;
Expand Down Expand Up @@ -49,9 +49,6 @@ for 1 .. 3 -> $time {
my LibXML::Element $node = $doc.create(LibXML::Element, 'test');
$node.setAttribute(contents => "\c[0xE4]");
$doc.setDocumentElement($node);

is $node.Str(), '<test contents="&#xE4;"/>', 'Node serialise works.';
$doc.encoding = 'utf-8';
# Second output
is $node.Str(), qq{<test contents="\c[0xE4]"/>}, 'UTF-8 node serialize';
}
6 changes: 0 additions & 6 deletions t/30xpathcontext.t
Original file line number Diff line number Diff line change
Expand Up @@ -175,15 +175,9 @@ $xc5.setContextNode($doc);
$xc5.findnodes('/');
subtest 'setting context position and size', {
ok $xc4.getContextPosition() == -1;
dies-ok { $xc4.setContextPosition(4); };
dies-ok { $xc4.setContextPosition(-4); };
dies-ok { $xc4.setContextSize(-4); };
dies-ok { $xc4.findvalue('position()') };
dies-ok { $xc4.findvalue('last()') };
is $xc4.getContextSize(), -1;
$xc4.setContextSize(0);
Expand Down

0 comments on commit d445af8

Please sign in to comment.