On Tue, 2004-05-25 at 06:58, Francisco Olarte Sanz wrote:

> I've been looking at the documentation for the test modules  (Test::More,  
> Test::Simple, Test::Builder ), and I've found nothing regarding the return  
> value of the ok(), is(), etc... functions/methods. Browsing through the  
> source I've found they (nearly) always land in calls to a Test::Builder->ok()  
> method which carefully returns 1/0 at the tail. Even in Test::Builder  
> documentation I've found only once the 'return' word, in the description of 
> the diag() method which stronly hints that the tests functions returns true 
> when the test pass ( prints OK ). 

It's a reliable feature.  If it's not documented, it should be.

-- c

Reply via email to