### ----------------------------------------------------
### -- XML::XPath
### -- Licenses: Artistic-2.0
### -- Authors: Martin Barth (ufobat)
### -- File: t/10_pipe_find.t
### ----------------------------------------------------
use v6.c;

use Test;
use XML::XPath;

plan 3;

my $set;
my $x = XML::XPath.new(xml => q:to/ENDXML/);
<AAA>
<BBB/>
<CCC/>
<DDD><CCC/></DDD>
<EEE/>
</AAA>
ENDXML

$set = $x.find('//CCC | //BBB');
is $set.elems, 3, 'found 3 nodes';

$set = $x.find('/AAA/EEE | //BBB');
is $set.elems, 2, 'found 2 nodes';

$set = $x.find('/AAA/EEE | //DDD/CCC | /AAA | //BBB');
is $set.elems, 4, 'found 4 nodes';

done-testing;


