-----BEGIN PGP SIGNED MESSAGE-----

Moin,

On Tuesday 03 February 2004 19:26, Andy Lester wrote:
> On Tue, Feb 03, 2004 at 06:44:04PM +0100, Tels ([EMAIL PROTECTED]) 
wrote:
> > is there a re reason that the following warns:
> >
> >     % perl -MTest::More -le 'plan tests => 1; ok (1,1)'
> >     1..1
> >     #     You named your test '1'.  You shouldn't use numbers for your
> > test names.
> >     #     Very confusing.
>
> ok() is not a comparison.  is() is a comparison.

Under "use Test;", ok, uses "eq" to compare the first argument to the 
second:

         ok(0,1);             # failure: '0' ne '1'
         ok('broke','fixed'); # failure: 'broke' ne 'fixed'
         ok('fixed','fixed'); # success: 'fixed' eq 'fixed'
         ok('fixed',qr/x/);   # success: 'fixed' =~ qr/x/

This seems to have changed in Test::More and I didn't notice that... doh!

Best wishes,

Tels

- -- 
 Signed on Tue Feb  3 19:35:52 2004 with key 0x93B84C15.
 Visit my photo gallery at http://bloodgate.com/photos/
 PGP key on http://bloodgate.com/tels.asc or per email.

 "We're looking at a future where only the very largest companies will be
 able to implement software, and it will technically be illegal for other
 people to do so." -- Bruce Perens, 2004-01-23

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
Comment: When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl.

iQEVAwUBQB/qi3cLPEOTuEwVAQEmJAf+OU5S7JyLnP14qVeVnVrzJWbq6//qBCRF
98hY8m7P9XS8l80/jD4hO5VEbhhE5M+XhcGlGu8djOO1IY9Te8ti/ZRdfpfn0gpH
4k76aM0en/IrwQ50LeB7wY7vjnhAp1TdvY1ebiQL8cFRaRjGpaST5uZp6Zyd+/Zb
3NI5LV8LgABHncgSLmU5bUZE4inB6JF4lZbdCzmnO3y5Gvlh8RHdGh2MvgcKR5Ge
nxClqZ0fX8OK5jSvgVxUh/wqdfesAHiN5KvUAwA0TdhuYomC5Sb2dpfgfVXyE/FI
mYfNmrrY6zRKeLwH16BELjR0C5+3Snvytqsw9g6sVm6OcH9S3WjAEQ==
=/Ig0
-----END PGP SIGNATURE-----

Reply via email to