in reply to Trap in Test::Unit::Assert? Avoidance

how about
$self->assert(scalar $case =~ /test text/, "warning message here");

Replies are listed 'Best First'.
Re^2: Trap in Test::Unit::Assert? Avoidance
by Jasper (Chaplain) on Mar 10, 2005 at 14:17 UTC
    Yes, that worked fine, and I did try that before the assignment to result. I thought the assignment was probably more readable...