Skip Menu |
 

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

Report information
The Basics
Id: 35176
Status: new
Priority: 0/
Queue: Test-XML

People
Owner: Nobody in particular
Requestors: ovid [...] cpan.org
Cc:
AdminCc:

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



Subject: Bad argument checking in is_xpath()
Download (untitled) / with headers
text/plain 388b
Minimal test case: is_xpath('<foo>0</foo>', '/foo', 0) This results in the following error message: usage: is_xpath(xml,xpath,expected[,name]) at -e line 1 Changing the condition in is_xpath to this fixes it: sub is_xpath { my ($input, $statement, $expected, $test_name) = @_; croak "usage: is_xpath(xml,xpath,expected[,name])" unless @_ >= 3; Cheers, Ovid


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.