Skip Menu |

This queue is for tickets about the List-MoreUtils-XS CPAN distribution.

Report information
The Basics
Id: 123870
Status: resolved
Priority: 0/
Queue: List-MoreUtils-XS

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

Bug Information
Severity: (no value)
Broken in: 0.427_002
Fixed in: 0.428



Subject: one() returns true if passed an open list.
The docs state: For an empty LIST, "one" returns false However: $ perl -MList::MoreUtils -E'say List::MoreUtils::one { 0 } ()' 1 It doesn't fail with the ::PP version. $ perl -MList::MoreUtils -E'say List::MoreUtils::PP::one { 0 } ()' 0 (This was initially reported at https://github.com/perl5-utils/List-MoreUtils/issues/31. Sorry about that.)