Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Test-XPath CPAN distribution.

Report information
The Basics
Id: 100902
Status: patched
Priority: 0/
Queue: Test-XPath

People
Owner: Nobody in particular
Requestors: jkeen [...] verizon.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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>
Download (untitled) / with headers
text/plain 649b
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
Download (untitled) / with headers
text/plain 367b
On 2014-12-13 18:48:35, jkeen@verizon.net wrote: Show quoted text
> 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().
Good idea. Added in https://github.com/theory/test-xpath/commit/73d04a3fd34153de4f5102c6f695e29ec01ea260.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.