On Tue, May 25, 2004 at 09:16:51AM -0700, chromatic wrote:
> 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.

http://search.cpan.org/~mschwern/Test-Simple-0.47/lib/Test/More.pm#I'm_ok,_you're_not_ok.

That covers it, no?

I'll try to clear up the ambiguity around use_ok, require_ok and
is_deeply.

-- 
Michael G Schwern        [EMAIL PROTECTED]  http://www.pobox.com/~schwern/
You're smoother than a tunnel of shining sorrow.

Reply via email to