Skip Menu |

This queue is for tickets about the Carp-Assert-More CPAN distribution.

Report information
The Basics
Id: 16875
Status: resolved
Priority: 0/
Queue: Carp-Assert-More

People
Owner: Nobody in particular
Requestors: PETEK [...] cpan.org (weekly)
Cc:
AdminCc:

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



Subject: assert_nonempty fails on blessed ref
assert_nonempty checks to see if the given passed reference is an array or hash reference before checking inside it to see if it has any elements. However, given a blessed reference, assert_nonempty fails because it checks ref($ref) instead of looking deeper than the blessing. assert_nonempty should be able to assert that a blessed ref is not empty.
Fixed in 1.14. Thanks.