Subject: | contains() syntax illustrated but not documented |
Date: | Sat, 13 Dec 2014 18:48:23 -0500 |
To: | bug-Test-XPath [...] rt.cpan.org |
From: | James E Keenan <jkeen [...] verizon.net> |
In the documentation for Test-XPath version 0.16, there is the following
example of the XPath 'contains()' syntax:
#####
$tx->ok( 'contains(//title, "Welcome")', 'Title should "Welcome"' );
#####
It appears there are some instances of contains() in the test suite as well.
However, there is no formal documentation of what contains() does. I
would have expected to find some documentation in the "About XPath"
section, perhaps right underneath the documentation for count().
#####
count(//p)
#####
If I knew exactly what contains() was supposed to do, I could probably
use it in the test suite on my $job.
Thank you very much.
Jim Keenan